zsh: simplify compdefs
This commit is contained in:
parent
b638b75e65
commit
e7d3fe6ac4
|
@ -121,10 +121,9 @@ zstyle ':completion:*:(ssh|scp|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<-
|
|||
|
||||
## Custom compdefs #######################
|
||||
|
||||
mycompdef() { is-callable "$1" && compdef ${@[2,-1]} }
|
||||
|
||||
mycompdef g _hub g=hub
|
||||
mycompdef o o=open
|
||||
mycompdef take take=mkdir
|
||||
mycompdef t t=tmux
|
||||
compdef g=hub
|
||||
compdef o=open
|
||||
compdef take=mkdir
|
||||
compdef t=tmux
|
||||
|
||||
autoload -U compinit && compinit
|
||||
|
|
Loading…
Reference in a new issue