dots/zshrc

50 lines
1 KiB
Bash
Raw Normal View History

2008-11-09 15:17:20 -06:00
# .zshrc
# Original, Main author: Saleem Abdulrasool <compnerd@compnerd.org>
# Trivial modifications: David Majnemer
# vim:set nowrap:
2009-03-07 18:05:12 -06:00
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump"
2008-11-09 15:17:20 -06:00
2009-03-07 18:05:12 -06:00
autoload age
autoload zmv
2008-11-09 15:17:20 -06:00
if [ ${ZSH_VERSION//.} -gt 420 ] ; then
autoload -U url-quote-magic
2008-11-09 15:17:20 -06:00
zle -N self-insert url-quote-magic
fi
autoload -U edit-command-line
zle -N edit-command-line
2008-11-09 15:17:20 -06:00
# Keep track of other people accessing the box
watch=( all )
export LOGCHECK=30
2008-11-25 23:14:07 -06:00
export WATCHFMT=$'\e[01;36m'" -- %n@%m has %(a.Logged In.Logged out) --"$'\e[00;00m'
2008-11-09 15:17:20 -06:00
# directory hashes
if [ -d "${HOME}/sandbox" ] ; then
hash -d sandbox="${HOME}/sandbox"
2008-11-09 15:17:20 -06:00
fi
if [ -d "${HOME}/work" ] ; then
hash -d work="${HOME}/work"
2008-11-09 15:17:20 -06:00
for dir in "${HOME}"/work/*(N-/) ; do
hash -d $(basename "${dir}")="${dir}"
done
2008-11-09 15:17:20 -06:00
fi
# common shell utils
if [ -d "${HOME}/.commonsh" ] ; then
for file in "${HOME}"/.commonsh/*(N.x:t) ; do
. "${HOME}/.commonsh/${file}"
done
fi
2008-11-09 15:17:20 -06:00
# extras
if [ -d "${HOME}/.zsh" ] ; then
for file in "${HOME}"/.zsh/*(N.x:t) ; do
. "${HOME}/.zsh/${file}"
done
2008-11-09 15:17:20 -06:00
fi