-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
37 lines (33 loc) · 1.17 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
export ZPLUG_HOME=~/.zplug
export ZPLUG_ROOT=~/.zplug
source $ZPLUG_HOME/init.zsh
DEFAULT_USER="robwin"
# Github plugins
zplug "zplug/zplug"
zplug "plugins/git", from:oh-my-zsh, if:"which git"
zplug "plugins/docker", from:oh-my-zsh, if:"which docker"
zplug "~/.docker-alias.zsh", from:local, if:"which docker"
zplug "plugins/docker-compose", from:oh-my-zsh, if:"which docker-compose"
zplug "plugins/npm", from:oh-my-zsh, if:"which npm"
zplug "plugins/extract", from:oh-my-zsh
zplug "robbyrussell/oh-my-zsh", use:"lib/*.zsh"
zplug "themes/agnoster", from:oh-my-zsh
zplug "zsh-users/zsh-autosuggestions", nice:8
zplug "zsh-users/zsh-history-substring-search", nice:9
zplug "zsh-users/zsh-syntax-highlighting", nice:10
if [[ "$(uname)" == "Darwin" ]]; then
zplug "plugins/brew", from:oh-my-zsh
fi
if [[ "$USER" == "$DEFAULT_USER" ]]; then
zplug "plugins/gradle", from:oh-my-zsh
fi
zplug "~/.iterm2_shell_integration.zsh", from:local
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Source plugins and add commands to $PATH
zplug load