-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpluginrc.zsh
More file actions
30 lines (26 loc) · 705 Bytes
/
pluginrc.zsh
File metadata and controls
30 lines (26 loc) · 705 Bytes
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
CURR_DIR="$(cd "$(dirname "$0")" && pwd)"
plugin_name='xxh-plugin-zsh-ohmyzsh'
export ZSH="$CURR_DIR/ohmyzsh"
if [[ -v ZSH_THEME ]]; then
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Found ZSH_THEME=$ZSH_THEME
fi
else
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Set default ZSH_THEME=agnoster
fi
export ZSH_THEME="agnoster"
fi
if [[ -v plugins ]]; then
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Found plugins=$plugins
fi
else
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Set default plugins=git
fi
export plugins=(git)
fi
export DISABLE_AUTO_UPDATE=true
source $CURR_DIR/ohmyzsh/oh-my-zsh.sh
autoload -U compinit && compinit