}
precmd() {
- print -n "\a"
+ printf "\a\033]2;\033\\"
}
# }}}
-# Tmux pane name {{{
-CTP()
-{
- printf "\033]2;\033\\"
-}
-CTP
-# }}}
-
# Aliases {{{
alias l="ls -AF "
alias ll="ls -AFl "
alias more="less"
alias m="less "
alias -g M="| less"
-alias mc="mc --nomouse ; CTP"
+alias mc="mc --nomouse"
bindkey -s "\eOS" " popd\n" # F4
f() {
zstyle ":completion:*:functions" ignored-patterns "_*"
zstyle ":completion:*" matcher-list "" 'm:{a-z\-}={A-Z\_}' 'r:|?=** m:{a-z\-}={A-Z\_}'
_mycomp () {
- [ $CURRENT -eq 1 ] && _command_names || _files
+ [ $CURRENT -eq 1 ] && _command_names || _files && return 0
+ # MAGIC_EQUAL_SUBST {{{
+ [[ "$PREFIX" = *\=* ]] || return 1
+ compstate[parameter]="${PREFIX%%\=*}"
+ compset -P 1 "*="
+ _value
+ # }}}
}
zstyle ":completion:*" completer _mycomp _parameters
autoload -U compinit ; compinit -d /tmp/.zcompdump