config/shell/functions: disable compdef in non-zsh
This commit is contained in:
parent
20709434e3
commit
d8d5596d26
|
@ -1,12 +1,15 @@
|
||||||
# Shell aliases & functions for Zsh, almost all work for Bash too
|
# Shell aliases & functions for Zsh, almost all work for Bash too
|
||||||
# data directory aliases {{{1
|
# data directory aliases {{{1
|
||||||
if test "$ZSH_NAME" = "zsh"; then
|
if test "$ZSH_NAME" = "zsh"
|
||||||
|
then
|
||||||
alias -g ___='"$(eval "$(fc -ln -1)" | tail -n 1)"'
|
alias -g ___='"$(eval "$(fc -ln -1)" | tail -n 1)"'
|
||||||
alias -g G="| grp"
|
alias -g G="| grp"
|
||||||
alias -g X="| xargs -d '\n'"
|
alias -g X="| xargs -d '\n'"
|
||||||
alias -g X1="| xargs -d '\n' -n 1"
|
alias -g X1="| xargs -d '\n' -n 1"
|
||||||
alias -g XC="| xclip -selection clipboard"
|
alias -g XC="| xclip -selection clipboard"
|
||||||
alias -g L="--color=always | ${PAGER:-less}"
|
alias -g L="--color=always | ${PAGER:-less}"
|
||||||
|
else
|
||||||
|
local compdef() { }
|
||||||
fi
|
fi
|
||||||
|
|
||||||
xdh="$XDG_DATA_HOME"
|
xdh="$XDG_DATA_HOME"
|
||||||
|
|
Loading…
Reference in New Issue