-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
85 lines (63 loc) · 1.94 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
73
74
75
76
77
78
79
80
81
82
83
84
85
# .zshrc
# Original, Main author: Saleem Abdulrasool <[email protected]>
# Trivial modifications: David Majnemer
# vim:set nowrap:
# Mine:
# Make sure sources are right - helpful when shell is run as a daemon
source /etc/profile
# Original:
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump"
autoload age
autoload zmv
if [ ${ZSH_VERSION//.} -gt 420 ] ; then
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
fi
autoload -U edit-command-line
zle -N edit-command-line
# Keep track of other people accessing the box
watch=( all )
export LOGCHECK=30
export WATCHFMT=$'\e[00;00m\e[01;36m'" -- %n@%m has %(a.logged in.logged out) --"$'\e[00;00m'
# directory hashes
if [ -d "${HOME}/sandbox" ] ; then
hash -d sandbox="${HOME}/sandbox"
fi
if [ -d "${HOME}/work" ] ; then
hash -d work="${HOME}/work"
for dir in "${HOME}"/work/*(N-/) ; do
hash -d $(basename "${dir}")="${dir}"
done
fi
# common shell utils
if [ -d "${HOME}/.commonsh" ] ; then
for file in "${HOME}"/.commonsh/*(N.x:t) ; do
. "${HOME}/.commonsh/${file}"
done
fi
# extras
if [ -d "${HOME}/.zsh" ] ; then
for file in "${HOME}"/.zsh/*(N.x:t) ; do
. "${HOME}/.zsh/${file}"
done
fi
# Mine:
# Path
export PATH="$PATH:$HOME/maude/:$HOME/.cabal/bin/"
# Perl complains constantly unless I do this:
# export LANGUAGE=en_US
# export LC_ALL=en_US
# Editors, for shell and revision control systems
export EDITOR="emacsclient -c -nw"
export SVN_EDITOR="emacsclient -c -nw"
export GIT_EDITOR="emacsclient -c -nw"
# Fix much of xmonad's java problems
export _JAVA_AWT_WM_NONREPARENTING=1
# Needed by javamoptestsuite
export INSTALL_PATH=/home/ilseman2/runtime-verification
# Have qemu use esd, which works the best from what I've tried
export QEMU_AUDIO_DRV=esd
export TIME='{Real: %E, User: %U, System: %S, CPU: %P}'
# Foreground $1, or %- by default
function fgg() { if [[ -n $1 ]] ; then fg %$1 ; else fg %- ; fi}
export SVN_MERGE=kdiff3caller