-
Notifications
You must be signed in to change notification settings - Fork 4
/
pluginrc.sh
51 lines (46 loc) · 1.24 KB
/
pluginrc.sh
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
CURR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
plugin_name='xxh-plugin-bash-ohmybash'
if [[ -v OSH_THEME ]]; then
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Found OSH_THEME=$OSH_THEME
fi
else
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Set default OSH_THEME=agnoster
fi
export OSH_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 bashmarks)'
fi
export plugins=(git bashmarks)
fi
if [[ -v aliases ]]; then
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Found aliases=$aliases
fi
else
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: 'Set default aliases=(general)'
fi
export aliases=(general)
fi
if [[ -v completions ]]; then
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: Found completions=$completions
fi
else
if [[ $XXH_VERBOSE == '2' ]]; then
echo $plugin_name: 'Set default completions=(git composer ssh)'
fi
export completions=(git composer ssh)
fi
export OSH=$CURR_DIR/oh-my-bash
DISABLE_UPDATE_PROMPT=true
DISABLE_AUTO_UPDATE=true
source $OSH/oh-my-bash.sh