diff --git a/.bashrc b/.bashrc index 23d6f4f..30e17f1 100755 --- a/.bashrc +++ b/.bashrc @@ -397,6 +397,7 @@ update() { updatewr() { # Run the Update function + update # Restart sudo reboot @@ -506,4 +507,12 @@ alias gr="touch README.md ;nano README.md" # choco install nano -y if command -v zoxide &> /dev/null; then # Initialize zoxide with the 'cd' command eval "$(zoxide init --cmd cd bash)" -fi \ No newline at end of file +fi + + +if command -v atuin &> /dev/null; then + # Initialize preexec and atuin if atuin is installed + [[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh + eval "$(atuin init bash)" +fi +