03/12/16 22:34
setopt auto_pushd pushd_ignore_dups
↓
export DIRSTACKSIZE=15
↓
ch(){ builtin cd $* }
↓
chpwd(){ compctl -g "`dirs`" + -/ ch }
↓
% ch [TAB]
↓
ウマー(゚д゚)
aliasのgdに比べると履歴順じゃないのと
~/ が /home/???? になるのが致命的かなぁ。
補完がぐりぐり動くヤシ(例のこれ↓)
setopt auto_menu
autoload -U compinit; compinit
zstyle ':completion:*:default' menu select=1
と併せて使ってると中々イイ感じ。