31 lines
936 B
Plaintext
31 lines
936 B
Plaintext
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|
|
|
|
# Editor used by CLI
|
|
export EDITOR="nvim"
|
|
export SUDO_EDITOR="$EDITOR"
|
|
|
|
# Define Paths
|
|
export SUNHAT_PATH="$HOME/.local/share/sunhat"
|
|
export CARGO_PATH="$HOME/.cargo"
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
export PNPM_HOME="$HOME/.local/share/pnpm"
|
|
export NVM_DIR="$HOME/.nvm"
|
|
|
|
# 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/"
|
|
|
|
# Nvm
|
|
set -h
|
|
[ -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
|
|
eval "$(zoxide init bash)"
|
|
|
|
# Oh My Posh
|
|
eval "$(oh-my-posh init bash --config $HOME/.config/ohmyposh/EDM115-newline.omp.json)"
|