Fix shell start by moving sources of shellenv files.
This commit is contained in:
parent
93b346ca5a
commit
756b2acee3
@ -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 && ""$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user