2021-04-19 08:32:04 +00:00
|
|
|
# Менеджер плагинов zplug
|
|
|
|
if [ ! -d $ZPLUG_HOME ]; then
|
|
|
|
git clone https://github.com/zplug/zplug $ZPLUG_HOME
|
|
|
|
fi
|
|
|
|
|
|
|
|
source $ZPLUG_HOME/init.zsh
|
2019-08-20 15:00:43 +00:00
|
|
|
|
|
|
|
# Плагины
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "zdharma/fast-syntax-highlighting", defer:2
|
|
|
|
|
|
|
|
# Make sure to use double quotes
|
|
|
|
zplug "zsh-users/zsh-history-substring-search"
|
|
|
|
|
|
|
|
zplug "zsh-users/zsh-autosuggestions"
|
|
|
|
zplug "zsh-users/zsh-history-substring-search"
|
|
|
|
zplug "zsh-users/zsh-completions"
|
|
|
|
zplug "rupa/z"
|
2020-04-04 20:40:58 +00:00
|
|
|
if [[ "$DISPLAY" != '' ]] && command -v xdotool > /dev/null 2>&1 && command -v wmctrl > /dev/null 2>&1; then
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "marzocchi/zsh-notify"
|
2020-04-05 11:57:36 +00:00
|
|
|
zstyle ':notify:*' expire-time 6000
|
|
|
|
zstyle ':notify:*' command-complete-timeout 20
|
2020-04-04 20:40:58 +00:00
|
|
|
fi
|
|
|
|
if command -v peco > /dev/null 2>&1; then
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "jimeh/zsh-peco-history"
|
2020-04-04 20:40:58 +00:00
|
|
|
fi
|
2019-08-20 15:00:43 +00:00
|
|
|
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "plugins/command-not-found", from:oh-my-zsh
|
|
|
|
zplug "plugins/common-aliases", from:oh-my-zsh
|
|
|
|
zplug "plugins/debian", from:oh-my-zsh
|
2020-04-04 20:40:58 +00:00
|
|
|
if command -v fzf > /dev/null 2>&1; then
|
2020-04-04 21:05:43 +00:00
|
|
|
export DISABLE_FZF_KEY_BINDINGS=true
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "plugins/fzf", from:oh-my-zsh
|
2020-11-16 08:01:17 +00:00
|
|
|
# fzf
|
|
|
|
if [ -e /usr/share/doc/fzf/examples/key-bindings.zsh ]; then
|
|
|
|
. /usr/share/doc/fzf/examples/key-bindings.zsh
|
|
|
|
fi
|
2021-03-11 09:08:10 +00:00
|
|
|
if [ -e /usr/share/doc/fzf/examples/completion.zsh ]; then
|
|
|
|
. /usr/share/doc/fzf/examples/completion.zsh
|
|
|
|
fi
|
2020-04-04 20:40:58 +00:00
|
|
|
fi
|
|
|
|
if command -v git > /dev/null 2>&1; then
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "plugins/git", from:oh-my-zsh
|
2020-04-04 20:40:58 +00:00
|
|
|
fi
|
|
|
|
if command -v psql > /dev/null 2>&1; then
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "plugins/postgres", from:oh-my-zsh
|
2020-04-04 20:40:58 +00:00
|
|
|
fi
|
2021-04-19 08:32:04 +00:00
|
|
|
zplug "plugins/sudo", from:oh-my-zsh
|
|
|
|
zplug "plugins/systemd", from:oh-my-zsh
|
|
|
|
zplug "plugins/vim-interaction", from:oh-my-zsh
|
|
|
|
zplug "plugins/web-search", from:oh-my-zsh
|
|
|
|
|
|
|
|
zplug "djui/alias-tips"
|