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 13:00:26 +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="29898"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Stefan Kangas , Jean Louis To: Dan Hitt Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 13:09:45 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 1kfiky-0007eO-8K for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 13:09:44 +0100 Original-Received: from localhost ([::1]:52624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfikx-0007Ur-2V for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 07:09:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42360) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kficg-0003sD-17 for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 07:01:11 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:58443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kficX-0004mj-SJ for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 07:01:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605787226; bh=8gprGm6eILy70VxYaZUB/76Xlx3SzqcYMTqFxVsMq8U=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=aeKFOVeukQyv9oT/rsymFp+IvuDhwqKboaSiwjQGMYdt5lbH1DgQE4fnSb9umb/ib HWRRAGUdTAPWrfpKfF8MDKrEOAhK+yJ69EOwD5wOmLt3iYnLqDzz+QTpOIvbrLFruv kD+JJNMwAz5CNG5UhmskRssV0t2IdG5sOahoFtsY= 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 13:00:26 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:5KQDujG8OHW+xaXNwDthhzaHoMPkjKh754QTb1iQdH3+mnR2xUsJN27v8PULCP3jCNwkR S2vXRNIik1TD5LmI9wXjLJQB8qPB70K/N2KbcsPDp7RHGEPnBAF08JO7EpDZcBLGz5o9voyD10Ta U0c/bKc3+oYZPboSjf3RS5fjmFkdhwXJ6J0URIHk44CpZYwc/XV3Y/e7alkIlRWbZ/Q9BPZKUO3X aLtaVHYdbWKfWZXN3RquEZOM2Lx/k8GCSPZ944fOzOkw+Yw24dX5ub5V7smDWJc+ya76g9mRxvzI Pc= X-UI-Out-Filterresults: notjunk:1;V03:K0:5xcBlkPNLJE=:rPnSQ84fcDSguFXc2hXM5r BKqeR1eRz+1Xf522tp4wgPO7a+TJ7TZUOK0k5nshxuAwwBMtjZiy78zWrBjQN8GtimPFPPpFu ex7f+VIuE+dC1IfDXiWZyKVeFjw4ADi26+KQxy2zlgErNsYO5PDhIw8grMtqoSx+zQ1HHVaL9 8XMMuZBa7vOmAlTIMAMiqwb9YK8PR4KGU5G3TKpZHwvJ/6vFIBiQR/tHRI0E4rfyQ/jXw9x2S r0vBJJCAuhB9kNy+3Vot1o6PjMNOTVCd136SUWMH5IBmaHU2DlS6kwEH8LdjC2bRMlKa3c4QJ sj9En5pXEV3yL99i1nTA1ZuQYSF76knTjrzFMTOLdEj0Mo+L39Rpd14lPVOr6Xu/7XkZLF+Ji ppRfa2eb4DqpgEH+HrVkr2G6kfYWqtKb43eXHrbN7XToui/3JHvv9LDZCq71X3Ljur7g1zJtR 4Ndc/D0hQYOXw8g81aLEo7JgsmCLGJfnng8ZLZpkADG85baLE75MuubmF0dfaIarQ5sRSwDCJ kx6wLRuAe3/epMF2DTNS4rTdgn/RqJM/SxfXkbT9ms7KFSzyIua6YadJxKJ8pEORmcUdCCNY9 ZVxrNSLByJTRE= Received-SPF: pass client-ip=212.227.15.19; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/19 07:00:58 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:125368 Archived-At: > Sent: Thursday, November 19, 2020 at 9:52 AM > From: "Dan Hitt" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" , "Stefan Kangas" , "Jean Louis" > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > On Wed, Nov 18, 2020 at 11:10 PM Christopher Dimech wro= te: > > > 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 (Geocomputatio= n) > > - 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 c= hange > > > > (unless you edit the alias file): you need only type the character= s > > once > > > > and then forever after the alias is available (unless you explicit= ly > > 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 standardize= d, > prepopulated ~/.emacs.d/eshell/alias file for your users? > > I have checked that one does not need to actually define an alias throug= h > 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 w= ith > eshell.) I can do like that. There is some variable that sets the path and name of the file. > dan >