feat: add bash configs
This commit is contained in:
parent
fd258a4df3
commit
6ee9a85ca1
7 changed files with 275 additions and 0 deletions
34
bash/tools.bash
Normal file
34
bash/tools.bash
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# bash-completion
|
||||
if ! shopt -oq posix; then
|
||||
if [[ -r /usr/share/bash-completion/bash_completion ]]; then
|
||||
source /usr/share/bash-completion/bash_completion
|
||||
elif [[ -r /etc/bash_completion ]]; then
|
||||
source /etc/bash_completion
|
||||
fi
|
||||
fi
|
||||
|
||||
# ble.sh
|
||||
[[ -r "$HOME/.local/share/blesh/out/ble.sh" ]] &&
|
||||
source "$HOME/.local/share/blesh/out/ble.sh"
|
||||
|
||||
# NVM
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
|
||||
[[ -s "$NVM_DIR/nvm.sh" ]] &&
|
||||
source "$NVM_DIR/nvm.sh"
|
||||
|
||||
[[ -s "$NVM_DIR/bash_completion" ]] &&
|
||||
source "$NVM_DIR/bash_completion"
|
||||
|
||||
# Shell integrations
|
||||
command -v starship &>/dev/null &&
|
||||
eval "$(starship init bash)"
|
||||
|
||||
command -v zoxide &>/dev/null &&
|
||||
eval "$(zoxide init bash)"
|
||||
|
||||
command -v atuin &>/dev/null &&
|
||||
eval "$(atuin init bash)"
|
||||
|
||||
command -v direnv &>/dev/null &&
|
||||
eval "$(direnv hook bash)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue