From 81c8016d1e296ed91af69f2d5bf435d7d657af04 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Apr 2014 13:15:53 +0100 Subject: Restructure everything to use rcm https://github.com/thoughtbot/rcm --- tag-zsh/config/zsh/zshenv | 53 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 tag-zsh/config/zsh/zshenv (limited to 'tag-zsh/config/zsh/zshenv') diff --git a/tag-zsh/config/zsh/zshenv b/tag-zsh/config/zsh/zshenv new file mode 100755 index 00000000..11932e6e --- /dev/null +++ b/tag-zsh/config/zsh/zshenv @@ -0,0 +1,53 @@ +if [[ $defpath == "" && -d ~/bin ]] +then + defpath=($path) + path=( + $defpath + ~/bin + ) + if [[ -d ~/.gem/ruby/*/bin ]] + then + path=( + $path + ~/.gem/ruby/*/bin + ) + fi +fi + +export PATH + +myfuncs=( ~/projects/dotfiles/zsh/functions/*(/) ) +fpath=( + $myfuncs + ~/projects/dotfiles/zsh/completion/ + $fpath +) +if [[ -d /usr/local/share/zsh-completions ]] +then + fpath=(/usr/local/share/zsh-completions $fpath) +fi + +if [[ -d /usr/local/share/zsh/site-functions ]] +then + fpath=(/usr/local/share/zsh/site-functions $fpath) +fi + +export FPATH + +case $OSTYPE in + *gnu*) + os=gnu + ;; + freebsd*) + os=freebsd + ;; + darwin*) + os=osx +esac + +export os + +if [[ -s $commands[direnv] ]] +then + eval "$(direnv hook zsh)" +fi -- cgit 1.4.1