Clean bashrc
parent
6ece16b2b1
commit
1eb975686a
31
.bashrc
31
.bashrc
|
@ -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 $@; }
|
||||
|
|
Loading…
Reference in New Issue