[Top][All Lists]

[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" <>
> To: "Christopher Dimech" <>
> Cc:
> Subject: Re: EShell Alias for a 'cd' followed by 'ls'
> Christopher Dimech <> 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

reply via email to

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