Lazy load pyenv and nvm
To speed up shell load
This commit is contained in:
parent
d3eca9e1fb
commit
22febffc01
2 changed files with 12 additions and 7 deletions
|
@ -1,7 +1,3 @@
|
||||||
# Load Programs
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
|
|
||||||
|
|
||||||
[ -d "$HOME/.nix-profile" ] && source "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
[ -d "$HOME/.nix-profile" ] && source "$HOME/.nix-profile/etc/profile.d/nix.sh"
|
||||||
|
|
||||||
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
||||||
|
@ -11,9 +7,12 @@ fi
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
eval "$(fasd --init auto)"
|
eval "$(fasd --init auto)"
|
||||||
|
|
||||||
export PATH="$HOME/.pyenv/bin:$PATH"
|
pyenv-init() {
|
||||||
eval "$(pyenv init -)"
|
export PATH="$HOME/.pyenv/bin:$PATH"
|
||||||
eval "$(pyenv virtualenv-init -)"
|
eval "$(pyenv init -)"
|
||||||
|
eval "$(pyenv virtualenv-init -)"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# git aliases
|
# git aliases
|
||||||
alias gs="git status"
|
alias gs="git status"
|
||||||
|
|
|
@ -35,3 +35,9 @@ nr() {
|
||||||
alias nrc="npm run coverage"
|
alias nrc="npm run coverage"
|
||||||
alias nrm="npm run mocha"
|
alias nrm="npm run mocha"
|
||||||
alias nvmu="nvm use"
|
alias nvmu="nvm use"
|
||||||
|
|
||||||
|
|
||||||
|
nvm-init() {
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
source "$NVM_DIR/nvm.sh"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue