bash: improve startup time

This commit is contained in:
Konstantin Bukley
2020-04-02 17:27:52 +03:00
parent 96f652a7d5
commit 5fc0bb0852
3 changed files with 11 additions and 11 deletions

View File

@@ -2,10 +2,8 @@ if [ -s ~/.bashrc ]; then
source ~/.bashrc;
fi
eval "$(rbenv init -)"
export PATH="/usr/local/sbin:$PATH"
eval "$(rbenv init - --no-rehash)"
(rbenv rehash &) 2> /dev/null
export PATH="$HOME/.cargo/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
# export NVM_DIR="$HOME/.nvm"
# [ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh"

View File

@@ -105,13 +105,10 @@ alias fkill='fzf_kill'
if [ -x /usr/local/bin/brew ]; then
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export MANPATH=/usr/local/share/man:$MANPATH
# bash_completion if installed
if [ -f `brew --prefix`/etc/bash_completion.d ]; then
. `brew --prefix`/etc/bash_completion.d
fi
fi
export PATH="$HOME/.cargo/bin:$PATH"
__git_ps1() { :;}
if [ -e ~/.git-prompt.sh ]; then
source ~/.git-prompt.sh