-
Notifications
You must be signed in to change notification settings - Fork 0
/
_zshrc.local
54 lines (31 loc) · 889 Bytes
/
_zshrc.local
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
#!/bin/zsh
function load_config() {
config_file=${1:?"Please arguments"}
for config_file in $*; do
#echo "[Config] ${config_file}"
if [ -f $config_file ]; then
. $config_file
fi
done
}
if [ -d $HOME/.zsh/ ]; then
config_dir="${HOME}/.zsh"
echo "load zshrc"
load_config ${config_dir}/zshrc
echo "load env"
load_config ${config_dir}/zsh_env
echo "load alias"
load_config ${config_dir}/zsh_alias
echo "load func"
load_config ${config_dir}/zsh_func
echo "load plugin"
load_config ${config_dir}/zsh_plugin
echo "load local"
load_config ${config_dir}/zsh_local
echo "load help_commands"
load_config ${config_dir}/help_commands
echo "load help_commands.d"
load_config ${config_dir}/help_commands.d/*.zsh
else
echo "$HOME/.zsh/ : Directory not found"
fi