1
0
Fork 0
mirror of synced 2024-11-22 18:15:37 -05:00

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

View file

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