bug fix for fixwreboto and atuin initialize if installed

This commit is contained in:
Yuriy 2024-08-14 01:22:53 -04:00
parent 3d313fadf6
commit a31528677d

View File

@ -397,6 +397,7 @@ update() {
updatewr() {
# Run the Update function
update
# Restart
sudo reboot
@ -507,3 +508,11 @@ if command -v zoxide &> /dev/null; then
# Initialize zoxide with the 'cd' command
eval "$(zoxide init --cmd cd bash)"
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