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 06:18:33 +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="1064"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Stefan Kangas To: Dan Hitt Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 06:20:34 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 1kfcN0-0000Ar-Fl for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 06:20:34 +0100 Original-Received: from localhost ([::1]:53984 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfcMz-0007iR-A4 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 00:20:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfcL8-0007iJ-SD for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 00:18:38 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:37859) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfcL6-0003OS-Hw for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 00:18:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1605763113; bh=efcjQ/+ga1P+uiY+W4124NBHwEs98/rG3ALHiQsApkI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=fENPWgOx76Wyd/7VaGRGCJoqGhVXvDxFpRZ69k9zd8nEFIx81TpDUQxw/B+e9Lqvz UOGPV8SwXwdQi49hKKJpZuq1Nj/QGTRT2UXgsyPkZ3OgvEhduutpKPTix7LmM+fJps L40HJiStueizoD7wRdbMF7vDlZZdBgnNO+VqNFcE= 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 06:18:33 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:PQKa5CHabw7y/XFNU/fBaPowyOKNOSuUKoOOWf6Or5Re8gaKlF84dQT5d7g9Sp9kYg9T0 v7gzqhZDVPOcr0arSrk2cPdHKTUqnYEPK3Nd2jjcqxCE+Mb12Mz1T28ogPYi/oacN3NtLcRDMgCb RJtDP5TiVfOf82TwQ/nn5ir52MOEnj5cNPKaWsP53nK/3rAWb5dT1T/L0JsNs1Sr0pSlhg9Da/N8 +AI6K2coulbVMveVtJoZP6uyA3iQy1d/N++CxB+pA5mB+7Dj6tE1BsjGZwLQ5QWDy2UhrmtsDffk l4= X-UI-Out-Filterresults: notjunk:1;V03:K0:FryIkgqj8ts=:L55O0XA0kdy+/Te/OUqUMl cnEZpHq1O5CZjHThNQ+5pyI/MicvvOyoTwIxOJwqxrG5NyyLS0HclVPIq6lPB2I509OOVf5b/ tkARqPJURjB+X7ZkqoYmJ6569Uf+DbjMyLDovAyEl0+917OG3RE8UziHbxXEcT6i1YQcujxXY hKmzPWksAb1M0Jvvo/kLaiQ3D2Q843epzAhXjQw66p82aYCt1qm8fyUzG8UFvRVV7QxA/QpeX tyeRh8ZbHcwnNGERqiCOkdTU8utW0pypaHBrTOCia9MTfRFE1WwzhgEb+rXXj/qXHbk6S/9ul B0dUoF/p0yOoHjczCf0mUiJZbe74I3p5xRDG5Uxu9KmZbSbOrtLnmQY4jCwxiqzLSCKaiGQ37 UxqM+dbjE6dMiKOnNNyCnI37KeVMCy0FKH0GRE4Gh7XySFWjXKDEMoPYF9TgzGo69oujIlcjv HDni9LuXztRxHtpkci9vZ4QVxWH1HBylTx89C5xefEPoHR5pUZ6zV47Dth7FKq4TZPau6h4Ov DitBkx7Br/vPLEWrp8wLJqJlW2sYvk29lnJMkCxxq6Lxtn2nrnkj8G4UqWKDBRlf2/SRZDAKK 01BQk2idIHQD4= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/18 23:10:06 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:125358 Archived-At: > Sent: Thursday, November 19, 2020 at 5:43 AM > From: "Dan Hitt" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" , "Stefan Kangas" > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > On Wed, Nov 18, 2020 at 8:11 PM Christopher Dimech wrot= e: > > > Have not found it useful. Have tried the following. > > > > alias cl 'cd $* && ls $*' > > > > Actually, it looks like it should be: > > alias cl 'cd $* ; ls' That is fine if called within eshell. However I want the alias be set in = my emacs init file. > That works for me, and has the very surprising benefit that it propagate= s > to all shells running in emacs, as well as working in new emacses starte= d > separately from the original one. > > So some pretty powerful, heady stuff. > > Thanks Stefan for pointing out the path. > > dan > > > > > > > > > Sent: Thursday, November 19, 2020 at 4:54 AM > > > From: "Stefan Kangas" > > > To: "Christopher Dimech" , "Help Gnu Emacs" < > > help-gnu-emacs@gnu.org> > > > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > > > > > 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 recommend familiarizing yourself with Info, reachable via `C-h i'. > > > > > > You can find the Eshell manual using `m eshell RET' where you should= be > > > able to find the information you are looking for using `i alias RET'= . > > > > > > Happy to help. > > > > > > > >