From 5f74173ad35c02bf8c9acee0fa9fb08d968fb0b6 Mon Sep 17 00:00:00 2001 From: dr460nf1r3 Date: Thu, 8 Jul 2021 08:26:31 +0200 Subject: [PATCH] Add fish_update_completions to update if fish binary is found --- usr/bin/update | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/usr/bin/update b/usr/bin/update index 33d222e..4bd754e 100755 --- a/usr/bin/update +++ b/usr/bin/update @@ -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! 🐧"