-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
72 lines (58 loc) · 2.67 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#!/bin/zsh
# ----------------------------------------
#
# ███████╗███████╗██╗ ██╗██████╗ ██████╗
# ╚══███╔╝██╔════╝██║ ██║██╔══██╗██╔════╝
# ███╔╝ ███████╗███████║██████╔╝██║
# ███╔╝ ╚════██║██╔══██║██╔══██╗██║
# ███████╗███████║██║ ██║██║ ██║╚██████╗
# ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝
# ----------------------------------------
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
## Установка zplug
## --------------------------------
if [[ ! -d ~/.zplug ]];then
git clone https://github.com/zplug/zplug.git ~/.zplug
fi
## Инициализация zplug
## --------------------------------
source ~/.zplug/init.zsh
## Отслеживание скорости загрузки
# zmodload zsh/zprof
## Плагины oh-my-zsh
## --------------------------------
OMZ_PLUGINS=(ansible git ubuntu sudo tmux sublime command-not-found virtualenv)
for plugin in $OMZ_PLUGINS; do
zplug "plugins/$plugin", from:oh-my-zsh
done
## Подключение плагина для истории,
## нормально работающего с fzf
## --------------------------------
zplug "trefmanic/oh-my-zsh", as:plugin, use:"plugins/history"
## Подключение fzf
## --------------------------------
zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf, use:"*linux*amd64*"
zplug "junegunn/fzf", use:"shell/*.zsh", defer:2
## Переезжаем на Spaceship
## https://github.com/denysdovhan/spaceship-prompt/blob/master/docs/Options.md
zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
# Настройки spaceship
zplug "$HOME/.zsh_config", from:local, use:spaceship
## Пользовательские настройки, алиасы и функции
## --------------------------------
USER_SETTINGS=(functions aliases settings)
ZSH_CONFIG_DIR="$HOME/.zsh_config"
for setting in $USER_SETTINGS; do
zplug "$ZSH_CONFIG_DIR", from:local, use:"$setting"
done
## Установка отсутствующих плагинов
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
## Загрузка zplug
zplug load
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"