From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Re: EShell Alias for a 'cd' followed by 'ls' Date: Thu, 19 Nov 2020 00:52:46 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9289"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Stefan Kangas , Jean Louis To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 09:58:50 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kffmD-0002HZ-Sr for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 09:58:49 +0100 Original-Received: from localhost ([::1]:48836 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kffmC-0000wu-R4 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 03:58:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kffgb-0005FN-UH for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 03:53:02 -0500 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:46524) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kffgZ-00050o-Ns for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 03:53:01 -0500 Original-Received: by mail-wr1-x42b.google.com with SMTP id d12so5480586wrr.13 for ; Thu, 19 Nov 2020 00:52:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HMBEBCH4zlnxCSniDriPDyyTi3c018MRPmfYAyCEgiw=; b=An3h/psBXnAzjfdB0/qKMkKwkwyJiJauj/+HVLdyRNZaK0tceokyxoLIhhKkHkozQu HJtNyrKXDo/5A9rTyc7xOanCff0Nr8SKamgqJLHhM5BuTd6AMBKdfT4scPxCaZ64KMqy aTBOy/X1U/gX+05r+xdMsYRwlGa9CjJpFi+oIF9xBM8VwaJrkw426drSDwBp7Zr5GDea IpXpZ0JgSLkBxOTNUi1zc5giZeB9fkNVMOmSsKkYKwOUWlk4tFRw/xs7K+ZrPuDAjAHf i4n0ZHUWWCkl89b5UBC5RGN+za0ilxXsbz/o1sT6WBvU1z4bupUwIYZiDD/iRXU/0grh S1NA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HMBEBCH4zlnxCSniDriPDyyTi3c018MRPmfYAyCEgiw=; b=RWHEB+bZd4iw6a0nvhs7Ofp/PqC5FstpePwCpeCSM+PXssqGDD5ZaYeYO/BRBu/2Qe LJGRIUF45qW6ft4yyxPucgMN46uW64X8Q1/hMbAXIz5sPpJqH97lvdBR9xKKQo7c7k+b hZr+n9HTLElsVd25OblKGatPa7k+eUxqwmDZB1VXICdokXt/OJdRGs03O2JeAI6Vaq7g T9Gv1yVGusriDJHiZroJp0zH3FJfXRbetblLH02RjPJc4RbQAjn5kSB4X1SIYWn6tZQ7 kolPa4Le2Iee59tvC3t4TToK/kUIMWyZFW9TzxFIKPUyHtdimWcnGKZ1e8RK2opmjmTm SQsw== X-Gm-Message-State: AOAM53376qzmHYeBcQGEu6ipbtfxmYIXBoDX4390VMZKvMajE2YKLISx N5E7eniirmjOWPPXdRYgJ+x8pe/+RR3V/jmYjD4= X-Google-Smtp-Source: ABdhPJweTJsMTUi6FKFXrjLtSzofJ9CJMNWT82XUqFNUGRclEuRGwf+WX1xQUdHaTJP+Ndx0KkeDWvIlMYM/3Cz9L/A= X-Received: by 2002:adf:ebc6:: with SMTP id v6mr8475443wrn.427.1605775978269; Thu, 19 Nov 2020 00:52:58 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=dan.hitt@gmail.com; helo=mail-wr1-x42b.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:125364 Archived-At: On Wed, Nov 18, 2020 at 11:10 PM Christopher Dimech 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" > > To: "Dan Hitt" > > Cc: "Christopher Dimech" , "Help Gnu Emacs" < > help-gnu-emacs@gnu.org>, "Stefan Kangas" > > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > > > * Dan Hitt [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.) dan