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 22:02:31 -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="17513"; 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 07:03:49 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 1kfd2q-0004TY-Dk for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 07:03:48 +0100 Original-Received: from localhost ([::1]:42378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kfd2p-0000xj-Gq for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Nov 2020 01:03:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43284) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kfd1r-00009y-Va for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 01:02:49 -0500 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:34922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kfd1p-0003aN-H2 for help-gnu-emacs@gnu.org; Thu, 19 Nov 2020 01:02:47 -0500 Original-Received: by mail-wr1-x429.google.com with SMTP id k2so5205892wrx.2 for ; Wed, 18 Nov 2020 22:02:44 -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=pj3sJldPYcCCcXpSEfdQc3YrG4cICUvwr3AbY53qfbg=; b=XGq2Vl2UjU7WnDyZH1Dg5g2L4D8X1F1jzB6++Jw8QoO5j2hzCZeldNb/FyQXeesena 5DJN2hL5zghbhw70Fq2pfFu8ytkP2ho+jM2NR2zpYCe8TRQdlvgQQcyKPF8WKxEZ6dbq +YEVC9MU7mbpG+tReve7tMO2p22fMFS/2Lm8cPO+uGrGevxAjFX/QXQkksGlSUEg5kjU nuQ2T1J6yZoDtrDyHJczUOnX6Nmhp844qMwon7ZHhISGT8aVcpkVW0wIXjSR5oURwr3F H2GQP2xFDURSgop6CYTrp1Npl+7TCD3vjMy5qlKq6cacCDkGvwDOaRJ/ChGFHBtai46E zvYw== 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=pj3sJldPYcCCcXpSEfdQc3YrG4cICUvwr3AbY53qfbg=; b=Zep0GK7cpcoeEm5zWdOtsx4hlMsAw+Ns9SIgbV4wjlYnLv+cwJnouOEpnhsYx+0ij1 UycdlY+MA6N2EQFy7NdfPcNmJRWMsAsbBziDkcMqA6/KzK4GBcn+W5jg1rE1yH9H976e /X8e3I0a9uO2Y+UZCIaEQCtau7SoUx0TLcdL67dsYEFcXSCfrJbOb7qJCoCgWE/KebhU bPv0XX27RVDtXDPtdmBPVF6aiEDc6coqFqaOljxXNmuYN7L/9HqH+OJa3BwJFCF+uwBX PZQvGfEOO3QHKJU9Z19tP6OdJw6yzd0m4kAvqzgYGhUleXvtA/3vnbA8DAq7fKddLHpc 1lbQ== X-Gm-Message-State: AOAM530IhU4vWc2XpECFYIXgEtMCHLM/vAt0eqxdoaG0hKma+HQZ/Bzm wIyKpUNCfJO6T0+8NlJfv2Xgb682ycquPvnrzfmhQMOx X-Google-Smtp-Source: ABdhPJy1fW6ePmAjyYZa81S8a6JOtbeAG64Tte65PpJzUSjVtt1aK1t+Asb4D7Bvk88y8Hoj2t65Tl7B/ond0Pvd4oA= X-Received: by 2002:adf:ed04:: with SMTP id a4mr8846168wro.172.1605765763222; Wed, 18 Nov 2020 22:02:43 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=dan.hitt@gmail.com; helo=mail-wr1-x429.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:125361 Archived-At: On Wed, Nov 18, 2020 at 9:18 PM Christopher Dimech wrote: > > Sent: Thursday, November 19, 2020 at 5:43 AM > > From: "Dan Hitt" > > To: "Christopher Dimech" > > Cc: "Help Gnu Emacs" , "Stefan Kangas" < > stefan@marxist.se> > > Subject: Re: EShell Alias for a 'cd' followed by 'ls' > > > > 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 is fine if called within eshell. However I want the alias be set in > my emacs > init file. > > > > 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 change (unless you edit the alias file): you need only type the characters once and then forever after the alias is available (unless you explicitly erase it). Anyhow, hope you find a suitable solution that addresses the problem the way you'd like to! :) dan