-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
executable file
·72 lines (59 loc) · 1.55 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
72
# ===========================================================
# .zshrc - For underwoo@zuko
# ===========================================================
# Change log:
#
# 20110314 - Seth Underwood <[email protected]>
# * File created
# 20110317 - Seth Underwood <[email protected]>
# * Added line to set prompt
#
# ===========================================================
# umask
umask 027
# History file, and how many lines to save in the history file, and terminal buffer
HISTFILE=~/.zsh.d/history
HISTSIZE=1500
SAVEHIST=1000
# Other history options
setopt appendhistory
setopt histignoredups
setopt histexpiredupsfirst
setopt histfindnodups
# Other zsh settings
setopt autonamedirs
setopt autoparamslash
# Turn off the annoying beep
unsetopt beep notify
# Use the Emacs key bindings
bindkey -e
# Default PRMPT setting
PROMPT='%n@%m[%~] %h %(!.#.>) '
# TERM specific settings
case "$TERM" in
dumb)
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
PS1='$ '
;;
screen)
precmd () {echo -ne "\033k\033\0134"}
;;
*)
;;
esac
# Initialize the completions
if [[ -f ~/.zcomplete && -r ~/.zcomplete ]]; then
. ${HOME}/.zcomplete
fi
# Host specific settings
host=zuko
# Load the aliases
if [[ -f ~/.zsh.d/aliases.${host} && -r ~/.zsh.d/aliases.${host} ]]; then
. ~/.zsh.d/aliases.${host}
fi
PERL_MB_OPT="--install_base \"/Users/underwoo/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/underwoo/perl5"; export PERL_MM_OPT;