[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EShell Alias for a 'cd' followed by 'ls'
From: |
Christopher Dimech |
Subject: |
Re: EShell Alias for a 'cd' followed by 'ls' |
Date: |
Fri, 20 Nov 2020 03:21:58 +0100 |
> Sent: Friday, November 20, 2020 at 3:12 AM
> From: "Vladimir Sedach" <vas@oneofus.la>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: EShell Alias for a 'cd' followed by 'ls'
>
>
> Christopher Dimech <dimech@gmx.com> writes:
> > I would like to use Eshell to call an alias 'cl' that does
> > a 'cd' to a directory followed by an 'ls'. But I do not know
> > how to achieve it.
>
> I am not sure whether you are already aware of this: you can achieve
> the same effect by setting the eshell-list-files-after-cd variable.
No, I did not know that.
> Also useful is the variable documentation:
>
> "If non-nil, call "ls" with any remaining args after doing a cd.
> This is provided for convenience, since the same effect is easily
> achieved by adding a function to ‘eshell-directory-change-hook’ that
> calls "ls" and references ‘eshell-last-arguments’."
>
> --
> Vladimir Sedach
> Software engineering services in Los Angeles https://oneofus.la
>
- Re: EShell Alias for a 'cd' followed by 'ls', (continued)
- Re: EShell Alias for a 'cd' followed by 'ls', Christopher Dimech, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Dan Hitt, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Jean Louis, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Christopher Dimech, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Dan Hitt, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Christopher Dimech, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls', Michael Heerdegen, 2020/11/19
Re: EShell Alias for a 'cd' followed by 'ls', Jean Louis, 2020/11/18
Re: EShell Alias for a 'cd' followed by 'ls', Vladimir Sedach, 2020/11/19
- Re: EShell Alias for a 'cd' followed by 'ls',
Christopher Dimech <=