-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
33 lines (25 loc) · 777 Bytes
/
.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
# Set up the prompt
[ -f ~/.profile-resource ] && . ~/.profile_
# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
# Override the ZSH prompt
precmd_functions=""
ECHO=${ECHO:="echo"}
HIST='%!'
EXIT='%?'
HDIRPRE="zsh"
alias rm='rm -i'
export HISTFILE="${HOME}/.${HDIRPRE}-history" # Default is ~/.sh_history.
export HISTFILESIZE=${HISTSIZE:-"1000"} # maximum number of history events to save (in file).
[ -f ~/.sh-cmnprompt ] && . ~/.sh-cmnprompt
function precmd_title {
#echo "A.sh.command=\"${1}\""
#echo "A.sh2.command=\"${2}\""
print -n $(settitle_dir "${2}")
}
cleartitle
preexec() { precmd_title $@ }
precmd() { setprompt }