From: Christopher Dimech <dimech@gmx.com>
To: Dan Hitt <dan.hitt@gmail.com>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>,
Stefan Kangas <stefan@marxist.se>, Jean Louis <bugs@gnu.support>
Subject: Re: EShell Alias for a 'cd' followed by 'ls'
Date: Thu, 19 Nov 2020 13:00:26 +0100 [thread overview]
Message-ID: <trinity-c66b4e49-54cc-4125-baa6-e536837cf52e-1605787226223@3c-app-mailcom-bs05> (raw)
In-Reply-To: <CAOphizJXRU2YiRH3=Y4=Kd7rX=3Qbk92jQKZmWk0b27m6A3vTA@mail.gmail.com>
> Sent: Thursday, November 19, 2020 at 9:52 AM
> From: "Dan Hitt" <dan.hitt@gmail.com>
> To: "Christopher Dimech" <dimech@gmx.com>
> Cc: "Help Gnu Emacs" <help-gnu-emacs@gnu.org>, "Stefan Kangas" <stefan@marxist.se>, "Jean Louis" <bugs@gnu.support>
> Subject: Re: EShell Alias for a 'cd' followed by 'ls'
>
> On Wed, Nov 18, 2020 at 11:10 PM Christopher Dimech <dimech@gmx.com> wrote:
>
> > The only caveat is that the aliases will go into an
> > official release and cannot require users to type them.
> >
> > Have done some elisp functions for that.
> >
> > ---------------------
> > Christopher Dimech
> > General Administrator - Naiad Informatics - GNU Project (Geocomputation)
> > - Geophysical Simulation
> > - Geological Subsurface Mapping
> > - Disaster Preparedness and Mitigation
> > - Natural Resource Exploration and Production
> > - Free Software Advocacy
> >
> >
> > > Sent: Thursday, November 19, 2020 at 7:39 AM
> > > From: "Jean Louis" <bugs@gnu.support>
> > > To: "Dan Hitt" <dan.hitt@gmail.com>
> > > Cc: "Christopher Dimech" <dimech@gmx.com>, "Help Gnu Emacs" <
> > help-gnu-emacs@gnu.org>, "Stefan Kangas" <stefan@marxist.se>
> > > Subject: Re: EShell Alias for a 'cd' followed by 'ls'
> > >
> > > * Dan Hitt <dan.hitt@gmail.com> [2020-11-19 09:04]:
> > > > Well, what is your init file?
> > > >
> > > > If your init file is in ~/.emacs.d/init.el, it looks like the act of
> > typing
> > > > alias cl 'cd $* ; ls'
> > > > to the eshell prompt will write the filesystem itself, and create or
> > modify
> > > > the file ~/.emacs.d/eshell/alias
> > > >
> > > > So that might be bad or that might be good, but it's a permanent change
> > > > (unless you edit the alias file): you need only type the characters
> > once
> > > > and then forever after the alias is available (unless you explicitly
> > erase
> > > > it).
> > >
> > > It is possible to undefine alias by duing
> > >
> > > $ alias ALIAS
> > >
> > > and alias will be not be there any more.
> > >
> >
>
> Thanks Jean Louis for the undo info.
>
> Christopher --- would it suit your release process to have a standardized,
> prepopulated ~/.emacs.d/eshell/alias file for your users?
>
> I have checked that one does not need to actually define an alias through
> eshell. It suffices to modify the alias file. (Although, to figure out
> what to put into the master alias file, you may have to do experiments with
> eshell.)
I can do like that. There is some variable that sets the path and name of
the file.
> dan
>
next prev parent reply other threads:[~2020-11-19 12:00 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 [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=trinity-c66b4e49-54cc-4125-baa6-e536837cf52e-1605787226223@3c-app-mailcom-bs05 \
--to=dimech@gmx.com \
--cc=bugs@gnu.support \
--cc=dan.hitt@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=stefan@marxist.se \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).