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

Re: Frage zu Alias



Hallo Christian,

Christian Brabandt <dug@256bit.org> wrote:
> Bjoern schrieb am Montag, den 02. März 2009:
>
> [Alias]
>>> Okay, dass die .bashrc dafür zuständig ist, wusste ich. Nur dachte  
>>> ich, dass wenn ich ich in der bash eingebe /$alias ll='ls-l'/ es  
>>> automatisch der .bashrc hinzugefügt wird.
>
> Ich hab dafür eine Wrapperfunktion:
>
> typo(){
> # So often I make little stupid typos while firing away
> # in the shell. They are very annoying, but it is too
> # much trouble to fire up Emacs or nano to manually
> # add an alias that would fix the problem. And typing
> # the appropriate echo and append command is tedious and
> # error prone. So, I whipped up a quick shell script which
> # reads the two arguments provided, and constructs the appropriate
> # echo command to create an alias that solves that typo.

Tja oder man lässt sich die Fipptehler von der Zsh mit _approximate
korrigieren. *SCNR*

Schöne Grüße, Jörg.
-- 
Angenehme Worte sind nie wahr,
wahre Worte sind nie angenehm.


Reply to: