From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Sedach Newsgroups: gmane.emacs.help Subject: Re: EShell Alias for a 'cd' followed by 'ls' Date: Thu, 19 Nov 2020 18:12:57 -0800 Message-ID: <87blfszsgm.fsf@t510.orion.oneofus.la> 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="37711"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.10; emacs 26.2 Cc: help-gnu-emacs@gnu.org To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 20 03:14:47 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 1kfvwk-0009gk-DK for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Nov 2020 03:14:46 +0100 Original-Received: from localhost ([::1]:41410 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfvwj-00079I-GH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 21:14:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49848) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfvvg-000792-Ko for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 21:13:40 -0500 Original-Received: from forward101p.mail.yandex.net ([2a02:6b8:0:1472:2741:0:8b7:101]:55779) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfvvd-0003sd-58 for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 21:13:39 -0500 Original-Received: from mxback30o.mail.yandex.net (mxback30o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::81]) by forward101p.mail.yandex.net (Yandex) with ESMTP id 8C84A2646C09; Fri, 20 Nov 2020 05:13:29 +0300 (MSK) Original-Received: from sas1-e00c2743cdb8.qloud-c.yandex.net (sas1-e00c2743cdb8.qloud-c.yandex.net [2a02:6b8:c14:3a22:0:640:e00c:2743]) by mxback30o.mail.yandex.net (mxback/Yandex) with ESMTP id MfOnp5x3Gn-DTiaoYUp; Fri, 20 Nov 2020 05:13:29 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oneofus.la; s=mail; t=1605838409; bh=X/nkkl1N6F93AnHUqw4qi0x02ISP/aWUBWy/hD7RZCw=; h=In-reply-to:Subject:Cc:To:From:Date:References:Message-ID; b=I4VLmMHx0WQKkWOHoJVD8tt+HWWdIgy/JT8AGK+I/WLaHTWTnU/LeiknuI/OTn0zX dpl/H65iPT+AWea2lYViMcn/e0+yo70wmsziakgXHjNcc8g9Jzk/hOb6xsIpBuyQgy oHiCVpYbnH6own8QqbYs0PhJbNOKSQpuAq51qUHE= Authentication-Results: mxback30o.mail.yandex.net; dkim=pass header.i=@oneofus.la Original-Received: by sas1-e00c2743cdb8.qloud-c.yandex.net (smtp/Yandex) with ESMTPSA id A578B2Biiu-DRIWfjpY; Fri, 20 Nov 2020 05:13:28 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) In-reply-to: Received-SPF: pass client-ip=2a02:6b8:0:1472:2741:0:8b7:101; envelope-from=vas@oneofus.la; helo=forward101p.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:125413 Archived-At: 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'. But I do not know > how to achieve it. 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. Also useful is the variable documentation: "If non-nil, call "ls" with any remaining args after doing a cd. 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." -- Vladimir Sedach Software engineering services in Los Angeles https://oneofus.la