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: Fri, 20 Nov 2020 03:21:58 +0100 Message-ID: References: <87blfszsgm.fsf@t510.orion.oneofus.la> 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="40132"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Vladimir Sedach Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 20 03:25:12 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 1kfw6q-000ALZ-3N for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Nov 2020 03:25:12 +0100 Original-Received: from localhost ([::1]:46406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfw6k-0001Yz-Rd for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 21:25:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfw3s-0001Yo-Vt for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 21:22:09 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:56083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfw3q-0005YC-2I for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 21:22:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605838918; bh=u1VbIFAineqkW5sTAnpXcW48u1J+8DWNcS4TY9w2Gv8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Hkc6WehqhfmmxsBDrfowvgIdoygcKHcAjsTTDGa2lIVfy9hdZ3PYSISuYl+eVKQOK FFanZvNJy0DHeuPVg6PFwaV5XdSKrPjBrLqpCQNabc+TyDr5JCxnB2xfl2utXCNRtH jmhEdjo7DP2P0QSB5c35GKe864l6gayi1vWwaziE= 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-bs14.server.lan [172.19.170.182]) (via HTTP); Fri, 20 Nov 2020 03:21:58 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87blfszsgm.fsf@t510.orion.oneofus.la> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:U7/KPZoCzPQFpGw8gCvQLynU9X3R4A7qfe6mDYHG44e0TsDXNyikUyFZWumPavdNoi87w EUkM0rFQPG1NvjnXYINhRyyZkXpD9jMsCpZ2IJtL5c7R3yATVABN+pAzuIck7PACvUGwPCnV7+2l ZkITrqaBOSE2AYmvDVxKlYjF6uAkG6JZ3iBhWtkHD1eO0EG8fGxlAH6+KLILsi/VW+X7QhqQQPBS EARKR9kHfAR6iNn14wmhtivcwiYKx4aT9U19VgvDcMA3RqIMUZ/e2WTIztvOHmjk0wJIC8WcZbbE Ro= X-UI-Out-Filterresults: notjunk:1;V03:K0:v6heqyhGHTk=:EXMk7lIo3fiG44R1avTSVn marY7HqZdhV2u2XfBb9oS2wfe67Op5ny+tCZAzvupVZx/My5ENe7fGKTlE/bquwKptBLokWkm qmNY3p3cb5N2d0Tp+bqhyIm6BWL+dErHSLNnkNO45usD+znXPGjtv3Dv2HpjpdT8nAnyndXr4 0HLusEZ8wyBDE7KNjNe0r8g99ZKwIvkYUlowMU2h2EGifhLsdLOAQLCGqFzbvGdAbUYcJInjQ yAdgQmh9R/wfUnyus8fQ6oLjbGbnk7qvLPlXWUADc3feo03WqErECpUzYVRgX80TSHzBYc4nb dRuHvLRC8USEFYvYdMGMiJs7SAkVv85qRfYFCpM4Nnoue6YwFR2wyDazQu78mCuqT6S9MLKug W9zPUiB2RFTVz32lXMTiVQtK2vSzVHOJGuWpHHwk8vEAVsiUp6ynF2ORw1fgVJtqB62voXPFD 3ZoJ5h+AnOAbk+jMLSPaD2LgwuokC3e/ehsB3ErDg2s/siptJxFHNtUpZOwJr2KnZThaaWPuu fklmquKem6Up8Yc9v1UjCfD0udiyJoPWilua6sb5iaOQTOHCsRE4IFYqOu4VMbhZmOkW7iJit 7vqTQfdoUzmEM= Received-SPF: pass client-ip=212.227.17.21; envelope-from=dimech@gmx.com; helo=mout.gmx.net 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:125414 Archived-At: > Sent: Friday, November 20, 2020 at 3:12 AM > From: "Vladimir Sedach" > To: "Christopher Dimech" > Cc: help-gnu-emacs@gnu=2Eorg > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > >=20 > Christopher Dimech writes: > > I would like to use Eshell to call an alias 'cl' that does > > a 'cd' to a directory followed by an 'ls'=2E But I do not know > > how to achieve it=2E >=20 > 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=2E No, I did not know that=2E =20 > Also useful is the variable documentation: >=20 > "If non-nil, call "ls" with any remaining args after doing a cd=2E > This is provided for convenience, since the same effect is easily > achieved by adding a function to =E2=80=98eshell-directory-change-hook= =E2=80=99 that > calls "ls" and references =E2=80=98eshell-last-arguments=E2=80=99=2E" >=20 > -- > Vladimir Sedach > Software engineering services in Los Angeles https://oneofus=2Ela >