Add nvm & clean up bashrc
This commit is contained in:
parent
733805c56e
commit
cd864950c3
@ -1,12 +0,0 @@
|
|||||||
# Powerline configuration
|
|
||||||
#if [ -f /usr/bin/powerline-daemon ]; then
|
|
||||||
#powerline-daemon -q
|
|
||||||
#POWERLINE_BASH_CONTINUATION=1
|
|
||||||
#POWERLINE_BASH_SELECT=1
|
|
||||||
#source /usr/share/powerline/bash/powerline.sh
|
|
||||||
#fi
|
|
||||||
# -----------------------------------------------------
|
|
||||||
# Prompt
|
|
||||||
# -----------------------------------------------------
|
|
||||||
# eval "$(oh-my-posh init bash --config $HOME/.config/ohmyposh/zen.toml)"
|
|
||||||
eval "$(oh-my-posh init bash --config $HOME/.config/ohmyposh/EDM115-newline.omp.json)"
|
|
@ -1,3 +1,2 @@
|
|||||||
source ~/.local/share/sunhat/defaults/bash/powerline
|
|
||||||
source ~/.local/share/sunhat/defaults/bash/shell
|
source ~/.local/share/sunhat/defaults/bash/shell
|
||||||
source ~/.local/share/sunhat/defaults/bash/aliases
|
source ~/.local/share/sunhat/defaults/bash/aliases
|
||||||
|
@ -3,16 +3,6 @@ if [ -f /etc/bashrc ]; then
|
|||||||
. /etc/bashrc
|
. /etc/bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use bash-completion, if available
|
|
||||||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
|
||||||
. /usr/share/bash-completion/bash_completion
|
|
||||||
|
|
||||||
# History control
|
|
||||||
shopt -s histappend
|
|
||||||
HISTCONTROL=ignoreboth
|
|
||||||
HISTSIZE=32768
|
|
||||||
HISTFILESIZE="${HISTSIZE}"
|
|
||||||
|
|
||||||
# Editor used by CLI
|
# Editor used by CLI
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
export SUDO_EDITOR="$EDITOR"
|
export SUDO_EDITOR="$EDITOR"
|
||||||
@ -23,10 +13,17 @@ export CARGO_PATH="$HOME/.cargo"
|
|||||||
export BUN_INSTALL="$HOME/.bun"
|
export BUN_INSTALL="$HOME/.bun"
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
export PNPM_HOME="$HOME/.local/share/pnpm"
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
|
||||||
# Set complete path
|
# Set complete path
|
||||||
export PATH="$HOME/bin:$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SUNHAT_PATH/bin:$BUN_INSTALL/bin:$CARGO_PATH/bin:$PNPM_HOME:$PYENV_ROOT/bin:$HOME/.rbenv/bin:/usr/lib/ccache/bin/"
|
export PATH="$HOME/bin:$HOME/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$SUNHAT_PATH/bin:$BUN_INSTALL/bin:$CARGO_PATH/bin:$PNPM_HOME:$PYENV_ROOT/bin:$HOME/.rbenv/bin:/usr/lib/ccache/bin/"
|
||||||
set +h
|
|
||||||
|
# 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
|
||||||
|
|
||||||
# Zoxide
|
# Zoxide
|
||||||
eval "$(zoxide init bash)"
|
eval "$(zoxide init bash)"
|
||||||
|
|
||||||
|
# Oh My Posh
|
||||||
|
eval "$(oh-my-posh init bash --config $HOME/.config/ohmyposh/EDM115-newline.omp.json)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user