zsh: simplify compdefs

This commit is contained in:
Henrik Lissner 2016-11-03 19:07:38 +01:00
parent b638b75e65
commit e7d3fe6ac4

View file

@ -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