-
Notifications
You must be signed in to change notification settings - Fork 2
/
bash_it_config_home.sh
executable file
·104 lines (91 loc) · 1.76 KB
/
bash_it_config_home.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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/usr/bin/env bash
# An array with the alias instances to enable
__enable_alias=(
ag
bundler
fuck
general
git
homebrew
markdown
maven
nwinkler
osx
vagrant
vim
)
# An array with the completion instances to enable
__enable_completion=(
bash-it
brew
defaults
dirs
gem
git_flow
homesick
maven
npm
ssh
system
vagrant
)
# An array with the plugin instances to enable
__enable_plugin=(
alias-completion
audio
base
battery
browser
dirs
extract
fzf
git
java
jenv
jump
lesspipe
logic-pro-x
maven
osx
osx-timemachine
proxy
ruby
ssh
sudo
thefuck
virtualenv
)
# Find out where Bash-it is located, with a reasonable fallback
__BASH_IT_INSTALL=${BASH_IT:-$HOME/.bash_it}
if [ ! -f "$__BASH_IT_INSTALL/bash_it.sh" ] ; then
echo "Bash-it not found at $__BASH_IT_INSTALL."
# shellcheck disable=SC2016
echo 'Please set the $BASH_IT variable to point to your Bash-it installation.'
exit 1
else
echo "Bash-it location : $__BASH_IT_INSTALL"
fi
# shellcheck disable=SC1090
source "$__BASH_IT_INSTALL/bash_it.sh"
echo ''
# Disable all alias instances
echo 'Disable all alias instances:'
bash-it disable alias all
# Enable all alias instances in one call
echo 'Enable alias instances:'
bash-it enable alias "${__enable_alias[@]}"
echo ''
# Disable all completion instances
echo 'Disable all completion instances:'
bash-it disable completion all
# Enable all completion instances in one call
echo 'Enable completion instances:'
bash-it enable completion "${__enable_completion[@]}"
echo ''
# Disable all plugin instances
echo 'Disable all plugin instances:'
bash-it disable plugin all
# Enable all plugin instances in one call
echo 'Enable plugin instances:'
bash-it enable plugin "${__enable_plugin[@]}"
echo ''