[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: |
Thu, 19 Nov 2020 06:49:41 +0100 |
> Sent: Thursday, November 19, 2020 at 5:49 AM
> From: "Jean Louis" <bugs@gnu.support>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>
> Subject: Re: EShell Alias for a 'cd' followed by 'ls'
>
> * Christopher Dimech <dimech@gmx.com> [2020-11-19 05:30]:
> > 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.
>
> This is by using function instead of alias.
>
> (defun cll (&optional dir)
> (cd dir)
> (eshell/ls))
I have been thinking when one would need to use
(require 'eshell)
What is its use case?
> I have tried with cl, but there is collision with system command cl.
>
- 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', 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',
Christopher Dimech <=
Re: EShell Alias for a 'cd' followed by 'ls', Vladimir Sedach, 2020/11/19