Update .bashrc

This commit is contained in:
Thomas Brasdefer 2024-12-20 19:03:15 +01:00
parent 9d173571d1
commit 8c197dbe0f
Signed by: tombdf
GPG Key ID: A047E76CC4582988

View File

@ -8,6 +8,8 @@ case $- in
*) return;; *) return;;
esac esac
export PATH="$HOME/.atuin/bin:$PATH"
# don't put duplicate lines or lines starting with space in the history. # don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options # See bash(1) for more options
HISTCONTROL=ignoreboth HISTCONTROL=ignoreboth
@ -103,15 +105,6 @@ alias waterfox='~/waterfox/waterfox'
# sleep 10; alert # sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable # enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc). # sources /etc/bash.bashrc).
@ -139,3 +132,6 @@ fi
eval "$(zoxide init --cmd cd bash)" eval "$(zoxide init --cmd cd bash)"
eval "$(oh-my-posh init bash)" eval "$(oh-my-posh init bash)"
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash)"