mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-04-25 00:17:17 +00:00
Removed "show_which" for grep and less
This commit is contained in:
parent
1b7cbf56ff
commit
4c562591c6
10
zshrc
10
zshrc
@ -103,18 +103,18 @@ precmd () {
|
|||||||
|
|
||||||
show_which() {
|
show_which() {
|
||||||
OUTPUT=$(which $1 | cut -d " " -f7-)
|
OUTPUT=$(which $1 | cut -d " " -f7-)
|
||||||
printf "Running '$OUTPUT'\n"
|
echo "Running '$OUTPUT'" 1>&2
|
||||||
}
|
}
|
||||||
## alias
|
## alias
|
||||||
alias grep='show_which grep && grep --colour=auto'
|
alias grep='grep --colour=auto'
|
||||||
alias top='show_which top && htop'
|
alias top='show_which top && htop'
|
||||||
alias chrommsu='show_which chrommsu && chromium --proxy-server=cache.msu:3128'
|
alias chrommsu='show_which chrommsu && chromium --proxy-server=cache.msu:3128'
|
||||||
alias chromtor='show_which chromtor && chromium --proxy-server="socks://localhost:9050" --incognito'
|
alias chromtor='show_which chromtor && chromium --proxy-server="socks://localhost:9050" --incognito'
|
||||||
alias chromi2p='show_which chromi2p && chromium --proxy-server="http=127.0.0.1:4444;https=127.0.0.1:4445" --incognito'
|
alias chromi2p='show_which chromi2p && chromium --proxy-server="http=127.0.0.1:4444;https=127.0.0.1:4445" --incognito'
|
||||||
alias df='show_which df && df -k --print-type --human-readable'
|
alias df='show_which df && df -k --print-type --human-readable'
|
||||||
alias du='show_which du && du -k --total --human-readable'
|
alias du='show_which du && du -k --total --human-readable'
|
||||||
alias less='show_which less && vimpager'
|
alias less='vimpager'
|
||||||
alias zless='show_which zless && vimpager'
|
alias zless='vimpager'
|
||||||
alias rm='show_which rm && rm -I'
|
alias rm='show_which rm && rm -I'
|
||||||
alias yatest='show_which yatest && yaourt --config /etc/pactest.conf'
|
alias yatest='show_which yatest && yaourt --config /etc/pactest.conf'
|
||||||
su () {
|
su () {
|
||||||
@ -250,7 +250,7 @@ fi
|
|||||||
|
|
||||||
# global alias
|
# global alias
|
||||||
alias -g g="| grep"
|
alias -g g="| grep"
|
||||||
alias -g l="| vimpager"
|
alias -g l="| less"
|
||||||
alias -g t="| tail"
|
alias -g t="| tail"
|
||||||
alias -g h="| head"
|
alias -g h="| head"
|
||||||
alias -g dn="&> /dev/null &"
|
alias -g dn="&> /dev/null &"
|
||||||
|
Loading…
Reference in New Issue
Block a user