[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EShell Alias for a 'cd' followed by 'ls'
From: |
Vladimir Sedach |
Subject: |
Re: EShell Alias for a 'cd' followed by 'ls' |
Date: |
Thu, 19 Nov 2020 18:12:57 -0800 |
User-agent: |
mu4e 1.3.10; emacs 26.2 |
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.
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', Dan Hitt, 2020/11/18
- 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 <=