all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jean Louis <bugs@gnu.support>
To: Christopher Dimech <dimech@gmx.com>
Cc: Help Gnu Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Alias for eshell to grep command
Date: Thu, 19 Nov 2020 19:09:45 +0300	[thread overview]
Message-ID: <X7aYyeaHfglhLPHn@protected.rcdrun.com> (raw)
In-Reply-To: <trinity-70625825-0a34-4e08-a300-5b5e3397855d-1605758049980@3c-app-mailcom-bs05>

* Christopher Dimech <dimech@gmx.com> [2020-11-19 06:55]:
> I would like to make an alias for eshell so I can use the command
> 
> grep --include="*.org" --include="*.texi" -hir -C "$1" "$2" "$3"
> 
> Have tried the following but the tactic failed.
> 
> alias grepot 'grep --include="*.org" --include="*.texi" -hir -C "$1"
> "$2" "$3"'

alias grepot '\*grep --include="*.org" --include="*.texi" -hir -C "$1" "$2" "$3"'

I just believe by doing above you may do that.

I could see that I had to escape * in front of grep as only *grep will
use the system command grep. In eshell Emacs functions have priority
so $ grep alone would invoke Emacs grep and show it in the buffer.

I believe you want it shown in the eshell, right?




  reply	other threads:[~2020-11-19 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19  3:54 Alias for eshell to grep command Christopher Dimech
2020-11-19 16:09 ` Jean Louis [this message]
2020-11-19 16:39   ` Christopher Dimech

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=X7aYyeaHfglhLPHn@protected.rcdrun.com \
    --to=bugs@gnu.support \
    --cc=dimech@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.