zsh: some cosmetics
This commit is contained in:
parent
6bd35000b7
commit
62c19cef8a
1 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ gup() { command git pull $@ }
|
||||||
gwta() { command git worktree add $@ }
|
gwta() { command git worktree add $@ }
|
||||||
gwtp() { command git worktree prune -v }
|
gwtp() { command git worktree prune -v }
|
||||||
groot() { cd $(command git rev-parse --show-toplevel) || return 0 }
|
groot() { cd $(command git rev-parse --show-toplevel) || return 0 }
|
||||||
gdiff() { command git diff --color $@; }
|
gdiff() { command git diff --color $@ }
|
||||||
greset() {
|
greset() {
|
||||||
echo "OK to reset and clean teh repo?"
|
echo "OK to reset and clean teh repo?"
|
||||||
read -sq _
|
read -sq _
|
||||||
|
@ -91,8 +91,8 @@ if testbin grc; then
|
||||||
cc configure cvs df dig gcc gmake id ip last lsof make mount \
|
cc configure cvs df dig gcc gmake id ip last lsof make mount \
|
||||||
mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
|
mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
|
||||||
)
|
)
|
||||||
for cmd in $cmds[@]; do
|
for cmd in $cmds; do
|
||||||
alias $cmd="command grc -es --colour=auto $cmd"
|
eval "$cmd() { command grc -es --colour=auto $cmd \$@ }"
|
||||||
done
|
done
|
||||||
unset cmds cmd
|
unset cmds cmd
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue