forked from colonelpanic/dotfiles
Tweak shellenv startup for marginal speedup
This commit is contained in:
parent
35347107e8
commit
8dacac359f
@ -20,28 +20,20 @@ function get_python_scripts_path {
|
|||||||
function _setup_env {
|
function _setup_env {
|
||||||
_path_helper
|
_path_helper
|
||||||
|
|
||||||
add_to_path "/usr/local/bin"
|
time add_to_path "$HOME/.local/bin" "$HOME/.lib/bin" "$HOME/bin" "/usr/local/bin" --before
|
||||||
|
|
||||||
is_osx && _osx_path_setup
|
is_osx && _osx_path_setup
|
||||||
_java_setup
|
_java_setup
|
||||||
_go_setup
|
_go_setup
|
||||||
_rust_setup
|
_rust_setup
|
||||||
_tex_setup
|
_tex_setup
|
||||||
|
|
||||||
add_to_path "/usr/local/sbin" --after
|
|
||||||
add_to_path "$HOME/.local/bin"
|
|
||||||
add_to_path "$HOME/.lib/bin"
|
|
||||||
|
|
||||||
# Travis completion
|
# Travis completion
|
||||||
[ -f "$HOME/.travis/travis.sh" ] && source "$HOME/.travis/travis.sh"
|
# [ -f "$HOME/.travis/travis.sh" ] && source "$HOME/.travis/travis.sh"
|
||||||
|
|
||||||
export ENVIRONMENT_SETUP_DONE="$(date)"
|
export ENVIRONMENT_SETUP_DONE="$(date)"
|
||||||
}
|
}
|
||||||
|
|
||||||
function _osx_path_setup {
|
function _osx_path_setup {
|
||||||
# What is going on here? Why does /libexec/gnubin get added twice
|
|
||||||
hash brew 2>/dev/null && add_to_path "$(brew --prefix coreutils)/libexec/gnubin"
|
|
||||||
add_to_path "$HOME/bin"
|
|
||||||
hash brew 2>/dev/null && add_to_path --before "$(brew --prefix coreutils)/libexec/gnubin"
|
hash brew 2>/dev/null && add_to_path --before "$(brew --prefix coreutils)/libexec/gnubin"
|
||||||
|
|
||||||
# Adds airport utility
|
# Adds airport utility
|
||||||
@ -116,7 +108,6 @@ function _ruby_setup {
|
|||||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
||||||
export RBENV_ROOT=/usr/local/var/rbenv
|
export RBENV_ROOT=/usr/local/var/rbenv
|
||||||
add_to_path "$HOME/.rbenv/bin"
|
add_to_path "$HOME/.rbenv/bin"
|
||||||
add_to_path "$HOME/.rvm/bin" --after
|
|
||||||
hash rbenv 2> /dev/null && eval "$(rbenv init -)"
|
hash rbenv 2> /dev/null && eval "$(rbenv init -)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user