Add fish_update_completions to update if fish binary is found

This commit is contained in:
dr460nf1r3 2021-07-08 08:26:31 +02:00
parent 312de94059
commit 5f74173ad3
No known key found for this signature in database
GPG Key ID: BE75B9D9767036C2
1 changed files with 12 additions and 2 deletions

View File

@ -23,5 +23,15 @@ fi
echo ""
# Update mlocate index
pacman -Qq mlocate > /dev/null && echo "Updating mlocate index.." && sudo updatedb
echo "System updated!"
if [ -x /usr/bin/fish ]; then
echo "Updating mlocate index.."
sudo updatedb
fi
# Update fish completions
if [ -x /usr/bin/fish ]; then
fish -c fish_update_completions
fi
echo ""
echo "System updated! 🐧"