all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Dimech <dimech@gmx.com>
To: Vladimir Sedach <vas@oneofus.la>
Cc: help-gnu-emacs@gnu.org
Subject: Re: EShell Alias for a 'cd' followed by 'ls'
Date: Fri, 20 Nov 2020 03:21:58 +0100	[thread overview]
Message-ID: <trinity-9bba6430-4565-4fe9-a15a-6dabcf314e3d-1605838918097@3c-app-mailcom-bs14> (raw)
In-Reply-To: <87blfszsgm.fsf@t510.orion.oneofus.la>


> 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
>



      reply	other threads:[~2020-11-20  2:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19  2:28 EShell Alias for a 'cd' followed by 'ls' Christopher Dimech
2020-11-19  3:54 ` Stefan Kangas
2020-11-19  4:10   ` Christopher Dimech
2020-11-19  4:43     ` Dan Hitt
2020-11-19  4:56       ` Dan Hitt
2020-11-19  5:18       ` Christopher Dimech
2020-11-19  6:02         ` Dan Hitt
2020-11-19  6:39           ` Jean Louis
2020-11-19  7:10             ` Christopher Dimech
2020-11-19  8:52               ` Dan Hitt
2020-11-19 12:00                 ` Christopher Dimech
2020-11-19 21:19               ` Michael Heerdegen
2020-11-19  4:49 ` Jean Louis
2020-11-19  5:49   ` Christopher Dimech
2020-11-20  2:12 ` Vladimir Sedach
2020-11-20  2:21   ` Christopher Dimech [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=trinity-9bba6430-4565-4fe9-a15a-6dabcf314e3d-1605838918097@3c-app-mailcom-bs14 \
    --to=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=vas@oneofus.la \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.