Files
dotfiles/home/run_after_fisher-update.sh.tmpl

17 lines
412 B
Bash
Executable File

#!/bin/bash
# Update Fisher plugins
if ! command -v fish &> /dev/null; then
echo "[err] Fish shell not installed - skipping fisher update"
exit 0
fi
if ! fish -c "type -q fisher" &> /dev/null; then
echo "[err] Fisher not installed - skipping fisher update"
exit 0
fi
echo "Updating Fisher plugins..."
fish -c "fisher update" && echo "[ok] Fisher plugins updated" || echo "[err] Fisher update failed"