Bashrc: Add ble.sh and Atuin

This commit is contained in:
Tony Grosinger 2024-07-13 12:59:38 -07:00
parent 419dd60626
commit e0a07cdf70

18
.bashrc
View File

@ -1,3 +1,10 @@
if [[ $- == *i* ]]; then # in interactive session
# ble.sh
# https://github.com/akinomyoga/ble.sh#13-set-up-bashrc
BLE="${HOME}/programs/ble.sh/out/ble.sh"
[[ -f ${BLE} ]] && source ${BLE} --noattach
fi
# Navigation
alias vim="nvim"
alias lg="lazygit"
@ -74,8 +81,13 @@ if [[ -d ${HOME}/bin ]]; then
export PATH=$PATH:${HOME}/bin
fi
# Enable atuin
# https://docs.atuin.sh
eval "$(atuin init bash)"
# fzf
eval "$(fzf --bash)"
#eval "$(fzf --bash)"
export FZF_DEFAULT_OPTS=" \
--color=bg+:#ccd0da,bg:#eff1f5,spinner:#dc8a78,hl:#d20f39 \
@ -162,3 +174,7 @@ elif [ "$BASH" != "" ]; then
PS1="\n╔ \w\$(prev_status_prompt)\$(git_prompt) -- \$(date '+%y-%m-%dT%H:%M:%S')\n╚ \h\$ "
fi
# ble.sh
# https://github.com/akinomyoga/ble.sh#13-set-up-bashrc
[[ ${BLE_VERSION-} ]] && ble-attach