[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Alias for eshell to grep command
From: |
Jean Louis |
Subject: |
Re: Alias for eshell to grep command |
Date: |
Thu, 19 Nov 2020 19:09:45 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* 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?