27 lines
881 B
Bash
27 lines
881 B
Bash
# https://github.com/wting/autojump
|
|
# apt-get install autojump
|
|
[[ -s /usr/share/autojump/autojump.sh ]] && source /usr/share/autojump/autojump.sh
|
|
|
|
# Автодополнение
|
|
autoload -Uz compinit
|
|
autoload zmv
|
|
|
|
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)
|
|
if [ $(date +'%j') != $updated_at ]; then
|
|
compinit -i
|
|
else
|
|
compinit -C -i
|
|
fi
|
|
|
|
zmodload -i zsh/complist
|
|
|
|
zstyle ':completion:*:processes' command 'ps -ax'
|
|
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;32'
|
|
zstyle ':completion:*:*:kill:*' menu yes select
|
|
zstyle ':completion:*:kill:*' force-list always
|
|
|
|
zstyle ':completion:*:processes-names' command 'ps -e -o comm='
|
|
zstyle ':completion:*:*:killall:*' menu yes select
|
|
zstyle ':completion:*:killall:*' force-list always
|
|
|