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