fix(fish): Don't show error of missing onefetch

This commit is contained in:
2025-09-18 13:25:37 +02:00
parent aa09e752b8
commit 8627144cbe

View File

@@ -143,7 +143,9 @@ function check_directory_for_new_repository
set current_repository (git rev-parse --show-toplevel 2> /dev/null)
if [ "$current_repository" ] && \
[ "$current_repository" != "$last_repository" ]
onefetch
if type -q onefetch
onefetch
end
end
set -gx last_repository $current_repository
end