10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
FGREP=""
FGREP_COLOUR="auto"
LS="gls"
LS_COLOUR="auto"
LS_ON_CD="yes"
LS_ON_INIT="no"
FEMALE="no" # Whether the user is female ;)
if [ "$FEMALE" = "yes" ]; then
PS1="%m:%c%B%(!.#.%{$(print "\e[1;35m")%}♥%{$(print "\e[0m")%})%b "
else
PS1="%m:%c%B%(!.#.$)%b "
fi
PS2="%B>%b "
RPS1="%(1j.%{$(print "\e[1;33m")%}%j%{$(print "\e[0m")%}.)"
RPS1+="%(?..%(1j. .)%{$(print "\e[1;31m")%}%?%{$(print "\e[0m")%})"
RPS2="%(1_.%{$(print "\e[1;30m")%}(%_%)%{$(print "\e[0m")%}.)"
LISTMAX=32768
WORDCHARS="*?[];!#~"
bindkey -e
setopt no_bg_nice
setopt no_nomatch
setopt extended_glob
|
<
<
<
<
<
<
<
<
<
<
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FGREP=""
FGREP_COLOUR="auto"
LS="gls"
LS_COLOUR="auto"
LS_ON_CD="yes"
LS_ON_INIT="no"
FEMALE="no" # Whether the user is female ;)
LISTMAX=32768
WORDCHARS="*?[];!#~"
bindkey -e
setopt no_bg_nice
setopt no_nomatch
setopt extended_glob
|
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
|
update_terminal_cwd() {
printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}"
}
else
update_terminal_cwd() {
}
fi
case $TERM in
aterm|Eterm|rxvt*|uxterm*|xterm*)
# Use set_title if you want to change the term title
set_title() {
# Without this, precmd would override it
precmd() {
update_terminal_cwd
}
print -Pn "\e]0;$@\a"
}
unset_title() {
precmd() {
print -Pn "\e]0;%m\a"
update_terminal_cwd
}
}
unset_title
;;
esac
alias vi="vim"
extr() {
for i in $@; do
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
>
>
>
>
>
|
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
|
update_terminal_cwd() {
printf '\e]7;%s\a' "file://$HOSTNAME${PWD// /%20}"
}
else
update_terminal_cwd() {
}
fi
set_prompt() {
if [ "$FEMALE" = "yes" ]; then
PS1="%m:%c$@%B%(!.#.%{$(print "\e[1;35m")%}♥"
PS1+="%{$(print "\e[0m")%})%b "
else
PS1="%m:%c$@%B%(!.#.$)%b "
fi
PS2="%B>%b "
RPS1="%(1j.%{$(print "\e[1;33m")%}%j%{$(print "\e[0m")%}.)"
RPS1+="%(?..%(1j. .)%{$(print "\e[1;31m")%}%?%{$(print "\e[0m")%})"
RPS2="%(1_.%{$(print "\e[1;30m")%}(%_%)%{$(print "\e[0m")%}.)"
}
set_prompt
_precmd() {
update_terminal_cwd
local branch_name
branch_name="$(git symbolic-ref HEAD 2>/dev/null)"
branch_name="${branch_name##refs/heads/}"
if [ ! -z "$branch_name" -a "$branch_name" != "master" ]; then
local branch
branch="%{$(print "\e[1;30m")%}("
branch+="%{$(print "\e[0;36m")%}$branch_name"
branch+="%{$(print "\e[1;30m")%})%{$(print "\e[0m")%}"
set_prompt "$branch"
else
set_prompt
fi
}
case $TERM in
aterm|Eterm|rxvt*|uxterm*|xterm*)
# Use set_title if you want to change the term title
set_title() {
# Without this, precmd would override it
precmd() {
_precmd
}
print -Pn "\e]0;$@\a"
}
unset_title() {
precmd() {
print -Pn "\e]0;%m\a"
_precmd
}
}
unset_title
;;
*)
precmd() {
_precmd
}
;;
esac
alias vi="vim"
extr() {
for i in $@; do
|
168
169
170
171
172
173
174
175
|
alias -s app=open
[ "$LS_ON_INIT" = "yes" ] && ls
unset AUDIO_PLAYER VIDEO_PLAYER
unset ARCHIVE_FORMATS AUDIO_PLAYER_FORMATS VIDEO_PLAYER_FORMATS
unset FGREP FGREP_COLOUR GREP GREP_COLOUR LS LS_COLOUR LS_ON_CD LS_ON_INIT
unset FEMALE
|
<
|
195
196
197
198
199
200
201
|
alias -s app=open
[ "$LS_ON_INIT" = "yes" ] && ls
unset AUDIO_PLAYER VIDEO_PLAYER
unset ARCHIVE_FORMATS AUDIO_PLAYER_FORMATS VIDEO_PLAYER_FORMATS
unset FGREP FGREP_COLOUR GREP GREP_COLOUR LS LS_COLOUR LS_ON_CD LS_ON_INIT
|