From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: EShell Alias for a 'cd' followed by 'ls' Date: Thu, 19 Nov 2020 08:10:14 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27704"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Dan Hitt , Help Gnu Emacs , Stefan Kangas To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 08:13:43 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 1kfe8U-000785-OA for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 08:13:42 +0100 Original-Received: from localhost ([::1]:33470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfe8T-0004v6-EI for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 02:13:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfe5i-0004up-Hi for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 02:10:52 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:48003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfe5f-0001nh-K8 for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 02:10:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605769814; bh=nuiaqLgG1ov8SMPOwJfeY1+MjonFtOPtNV05NzvEfUI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JH7g5yN6jxQHGXmxPDFGtrdojeyEi4TWozDPpv5bKNaOz+4lXtcLyYcxHfil45ivc PZvexdlrYlqZZzMgKQOkQRDgMWOy8dXWhhhZ58v3R/3JYrbxofxMAFiE+VVQ1h/HjK yJkhJy+yPXuKnYfgRwpn9HcbZlYu9YV1szqbrMoQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs05.server.lan [172.19.170.173]) (via HTTP); Thu, 19 Nov 2020 08:10:14 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:E1DpYTqIr0ZJsaeZcthqPyeDwBUrQz7Cy42NnoLtiMVHRon6hSn5gY78GPVEdZPp9Snwf SoyXFnZSKpueu/fAt4MVTXz3zcdej4nnAZghRjeZocE4TYOVNyV4ehj46diCJTm9tWRIiaY0QY1P 9dhisyT6YpbuWnrte8kx8LWLD6Ikh5sSDheNPRVn5Pw83dFKuTqOu+VH7sQ4Rsqmg252QZM24cU0 PAv3iapWKzw7+6nbufCiBVn8JPtIH//n7rcijUcozC28jpSfV7i/itfvZJOlRz6xhcsYurquaPs0 zI= X-UI-Out-Filterresults: notjunk:1;V03:K0:BRUWenH6k4o=:DTJHlWUI3x/DLiUopbpLu9 DZ1rxYNRlIVRfYatDQOLwekIUvbjQe4eIP8nPBxxTq7VQrt/bzcvicycKkfp/1LyDh3F1xS/V yjmiytK87GQn2LeynC/ipxO79k90Aeng49P2mRlfg4qQsM9LuWmvx06261DbciL3K/53RMm8X tmoX7Xu/pRcGqVcf0/Hx4bYa91hLmtzyXuq9nlJu+b0PCv4xPKe8JfOZGoo20JgrEJFfsvtmh FZjI8EEGFYrQa8DGw74mQTkh85HeqN5ZPWFLr1UvSf28aLYChxZZr37VnVDE53gG0/YIvDw3t N6tIHFw4lH37fQoTrxSZUw+VXYVKkDKf73DKtBWlXAAnAqehCz2q+5sWBe9Rm+0wU65Ci+D7l p8vFBgBrpurFEKTOrkwEHTcud3A4IPHfDha1QOCzAYIaUSB8Ua8+IDufX3Y4WJ9XW4UUKEren uJPolcOxaYy86uQT2Fn8uAfj70Owll5N/qGTB3UWTjoCjC1+ql1zsFZJNhprL6TaylZCDQ6OU jphSruloUA7a/R4F4blkvPTBNLOA7u3HyT1LAMbtVzPW86th2Vjz4l8mBfnXdUuWEEu2fjeqH aXMuCtLNRMn0o= Received-SPF: pass client-ip=212.227.15.15; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/19 02:10:46 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:125363 Archived-At: 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. =2D-------------------- 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" , "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 t= yping > > alias cl 'cd $* ; ls' > > to the eshell prompt will write the filesystem itself, and create or m= odify > > the file ~/.emacs.d/eshell/alias > > > > So that might be bad or that might be good, but it's a permanent chang= e > > (unless you edit the alias file): you need only type the characters on= ce > > and then forever after the alias is available (unless you explicitly e= rase > > it). > > It is possible to undefine alias by duing > > $ alias ALIAS > > and alias will be not be there any more. >