Fix shell start by moving sources of shellenv files.

This commit is contained in:
Ivan Malison 2014-12-24 04:19:46 -05:00
parent 93b346ca5a
commit 756b2acee3

View File

@ -1,9 +1,5 @@
source ~/.lib/shellenv/functions.sh
for filename in ~/.lib/shellenv/*; do
source $filename
done
function add_to_front_of_path {
export PATH=$@:$(echo $PATH | sed "s|:*$@||g" | sed "s|^:||")
}
@ -38,6 +34,10 @@ add_to_back_of_path "/usr/local/sbin"
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
for filename in ~/.lib/shellenv/*; do
source $filename
done
function with_shellrc {
zsh -c "source ~/.zshrc && ""$@"
}