This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugins.zsh
79 lines (65 loc) · 1.71 KB
/
plugins.zsh
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
71
72
73
74
75
76
77
78
79
if ! zgen saved; then
echo "Creating a zgen save".
# Load environment overrides.
if [[ -e $HOME/.environment.zsh ]]; then
zgen load $HOME/.environment.zsh
fi
# Load promptline.
if [[ -e $HOME/.promptline.sh ]]; then
zgen load $HOME/.promptline.sh
fi
# Clone Base16 Shell.
zgen clone chriskempson/base16-shell
# Load Oh My Zsh.
zgen load rxrc/zshrc oh-my-zsh
zgen oh-my-zsh
# Oh-My-Zsh plugins to load.
oh_my_zsh_plugins=(
docker
docker-compose
cp extract rsync
git github
nvm
rbenv ruby gem rake bundler
knife vagrant
heroku
bower
python pip
golang
lein
meteor
httpie
vim-interaction
vi-mode
)
# Only load tmux plugins when tmux is installed.
if [[ -x $(command -v tmux ) ]]; then
oh_my_zsh_plugins+=( tmux tmuxinator )
fi
# Only load some plugins on Arch Linux.
if [[ -f /etc/arch-release ]]; then
oh_my_zsh_plugins+=( archlinux systemd )
fi
# Load Oh My Zsh plugins.
for plugin in $oh_my_zsh_plugins; do
zgen oh-my-zsh plugins/$plugin
done
if [[ -e $HOME/meltwater ]]; then
zgen load [email protected]:meltwater/mlabsh.git team
fi
# Load custom forks of some Oh My Zsh plugins.
zgen load rxfork/oh-my-zsh plugins/systemd systemd
zgen load rxfork/oh-my-zsh plugins/pyenv pyenv
# Load this plugin.
zgen load rxrc/zshrc plugin
# Load fzf zsh plugin.
if [[ -e /usr/share/fzf/fzf.zsh ]]; then
zgen load /usr/share/fzf/fzf.zsh
fi
# The history-substring-search plugin must be loaded
# after the zsh-syntax-highlighting plugin.
# These plugins must be loaded last.
zgen oh-my-zsh plugins/history-substring-search
zgen load zsh-users/zsh-syntax-highlighting
zgen save
fi