-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
72 lines (60 loc) · 1.27 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
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
# .zshrc
# http://zsh.sourceforge.net/Doc/Release/zsh_toc.html
# http://zsh.sourceforge.net/Guide/zshguide.html
# http://zsh.sourceforge.net/FAQ/
if test x$LOGLEVEL "==" x; then
LOGLEVEL=error
fi
#######################################
# .zsh.d fragment
#######################################
case $LOGLEVEL in
debug)
echo "DEBUG: HOME = ${HOME}"
;;
info)
echo -n "."
;;
esac
if test -d "${HOME}/.zsh.d"; then
for f in `find ${HOME}/.zsh.d/ -name '*.sh'` ; do
case $LOGLEVEL in
debug)
echo "DEBUG: f = ${f}"
;;
info)
echo -n "."
;;
esac
[ -x "$f" ] && . "$f"
done
unset f
fi
#######################################
# Prompt Settings
#######################################
zsh_set_prompt_type_1
chpwd
#######################################
# .*sh.d fragment
#######################################
SHELLS=(sh bash)
for x in ${SHELLS[@]}; do
if test -d "${HOME}/.${x}.d"; then
for f in `find ${HOME}/.${x}.d/ -name '*.sh'` ; do
case $LOGLEVEL in
debug)
echo "DEBUG: f = ${f}"
;;
info)
echo -n "."
;;
esac
[ -x "$f" ] && . "$f"
done
unset f
fi
done
unset x
unset SHELLS
clear