help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Shell aliases as shell-commands


From: Sebastian Tennant
Subject: Re: Shell aliases as shell-commands
Date: Tue, 20 Jan 2009 11:10:51 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux)

Quoth Teemu Likonen <tlikonen@iki.fi>:
> Sebastian Tennant (2009-01-20 10:18 +0000) wrote:
>
>> Quoth Peter Dyballa <Peter_Dyballa@Web.DE>:
>>> Am 20.01.2009 um 10:09 schrieb Sebastian Tennant:
>>>
>>>> It's 'M-x shell-command' I'm thinking about.
>>>
>>> Forget it!  Shell-command is not meant for interactive use as in a
>>> shell with aliases and such comfort.
>>
>> But my aliases are so handy!!! I want them (without having to run an
>> interactive shell), and Emacs can give them to me, I know it can :)
>
> Aliases work in interactive shell. If you want to use some "aliases"
> outside an interactive shell turn them into shell scripts.

Which is a lot of work (and not much fun :)

Hence my plan to parse my ~/.bashrc (or alias file) and define a command
'M-x alias' which maps names of aliases to their respective definitions.

Anyone have any tips on how best to write the parsing routines?

Seb




reply via email to

[Prev in Thread] Current Thread [Next in Thread]