From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan Hitt Newsgroups: gmane.emacs.help Subject: Re: EShell Alias for a 'cd' followed by 'ls' Date: Wed, 18 Nov 2020 20:43:35 -0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14720"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs , Stefan Kangas To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 19 05:44:46 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 1kfboL-0003jM-Oo for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 05:44:45 +0100 Original-Received: from localhost ([::1]:59958 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfboK-0004Eq-Pq for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 18 Nov 2020 23:44:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfbnS-0004Eh-LU for help-gnu-emacs@gnu.org; Wed, 18 Nov 2020 23:43:50 -0500 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:35871) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfbnQ-000741-N1 for help-gnu-emacs@gnu.org; Wed, 18 Nov 2020 23:43:50 -0500 Original-Received: by mail-wr1-x432.google.com with SMTP id j7so5079139wrp.3 for ; Wed, 18 Nov 2020 20:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kfeWc9qwbt7W57/60oWBi32dLqkUvDiENrUrj+No8Ec=; b=jXKQB7uB2TkXgcd+DO+v9z9Iz+FksojrTPQIwFPTh7pO/KeLaJMkbYHwbQR07HKy32 /jAnLLJ9IRwwQvtssk9W5mqY+cUbjNI3EvyWBv2C/28psCi7pmkc8wCcRuEa2SDUvxzD Bh99TK78UzH2vyaDpQ+H/TtiuoaGcIXdnlhodlzJuAVDeUQU0CROnRRWMNELlPlHJnfa zbpKsItUMp+cmTTqfwQilgOcepdzaI2Dgi5nL2Wu9HxHomYz6Tw9yIYRWhzLmEoSHRPQ 7LCv8N2NUktEwEvkctFl+KvqbK6zr6K+n3uhGyChy7a82auvib8UaV5qat5TuvBF/Rnd yZYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kfeWc9qwbt7W57/60oWBi32dLqkUvDiENrUrj+No8Ec=; b=SuebI8LYlwVe/xx9iEjdcNjL7jW/txHM/lNIHom9uFKq1iDHGItv+O4el3F3Zb98eg QoITL+Sei+1FRwc7IAL3rHK2hD7tiTPTOkiJkdztDmNjFwFZjswrJsLgZSFtuB3fYn4k nvx0R009oFGsBydMCCi/JVGbX2OofpvSRaDXWNnUZL52SyGiPW8c+jrCb9lcBH0GQXqW 6MRhpIVEjn5Se74zOYN4sUAyMmx3DuWU8eC6R0n3FKHnhXyu15wC17C8XSjMfo/UjRnw h+Wk+eXQgvFuNGZqTNMvN42vu2ECGcgTKMAbhQ87dgN1bzYkvxrBBM6Eq8qKsmf/rd9O O1WQ== X-Gm-Message-State: AOAM532LwfWRFCGXisea+8AOweH2zr8BhepE/ONUaAQdWbtynwOc9EXo R+7lxFNIWWANM60lHFfp75jlR/2NK7LkmUVro5M= X-Google-Smtp-Source: ABdhPJzhdCwO5wHcw+ohuyvhLCcPVFGoGUbNjXI61oTo67qnp/UkBaTuaEypuREK01JW9mnTRRHgH6twc9EbN2pxhVY= X-Received: by 2002:adf:ebc6:: with SMTP id v6mr7570360wrn.427.1605761026751; Wed, 18 Nov 2020 20:43:46 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=dan.hitt@gmail.com; helo=mail-wr1-x432.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:125352 Archived-At: On Wed, Nov 18, 2020 at 8:11 PM Christopher Dimech wrote: > 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 works for me, and has the very surprising benefit that it propagates to all shells running in emacs, as well as working in new emacses started 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. > > > >