Clean bashrc

master
Hektor Misplon 2020-12-10 19:38:24 +01:00
parent 6ece16b2b1
commit 1eb975686a
1 changed files with 7 additions and 24 deletions

31
.bashrc
View File

@ -36,10 +36,9 @@ export HISTSIZE=500000
MANWIDTH=120
export MANWIDTH
# Source fuzzy finder
# Fuzzy finder setup
source /usr/share/fzf/*.bash
source /usr/share/fzf/key-bindings.bash
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -t -g ""'
export FZF_DEFAULT_OPTS='--height 38% --reverse --border --prompt="❭ " --pointer="❭"'
export FZF_COMPLETION_OPTS='-x'
@ -51,26 +50,10 @@ export EDITOR='vim'
lazy_load_nvm() {
unset -f nvm node npm npx
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
}
nvm() {
lazy_load_nvm
nvm $@
}
node() {
lazy_load_nvm
node $@
}
npm() {
lazy_load_nvm
npm $@
}
npx() {
lazy_load_nvm
npx $@
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
}
nvm() { lazy_load_nvm nvm $@; }
node() { lazy_load_nvm node $@; }
npm() { lazy_load_nvm npm $@; }
npx() { lazy_load_nvm npx $@; }