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 #######################
|
## Custom compdefs #######################
|
||||||
|
|
||||||
mycompdef() { is-callable "$1" && compdef ${@[2,-1]} }
|
compdef g=hub
|
||||||
|
compdef o=open
|
||||||
mycompdef g _hub g=hub
|
compdef take=mkdir
|
||||||
mycompdef o o=open
|
compdef t=tmux
|
||||||
mycompdef take take=mkdir
|
|
||||||
mycompdef t t=tmux
|
|
||||||
|
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
|
Loading…
Reference in a new issue