dots/zshrc

61 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2008-11-09 15:17:20 -06:00
# .zshrc
2010-09-02 11:51:46 -05:00
# Current author: David Majnemer
# Original author: Saleem Abdulrasool <compnerd@compnerd.org>
2008-11-09 15:17:20 -06:00
# vim:set nowrap:
case `uname -s` in
Darwin)
export LHOSTNAME=`scutil --get LocalHostName`
;;
*)
export LHOSTNAME=${HOST}
;;
esac
autoload compinit; compinit -d "${HOME}/.zsh/.zcompdump-${LHOSTNAME}"
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
2009-03-10 14:00:56 -05:00
export WATCHFMT=$'\e[00;00m\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
2016-11-03 21:30:53 -07:00
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting