fix(fish): Don't show error of missing onefetch
This commit is contained in:
@@ -143,8 +143,10 @@ function check_directory_for_new_repository
|
|||||||
set current_repository (git rev-parse --show-toplevel 2> /dev/null)
|
set current_repository (git rev-parse --show-toplevel 2> /dev/null)
|
||||||
if [ "$current_repository" ] && \
|
if [ "$current_repository" ] && \
|
||||||
[ "$current_repository" != "$last_repository" ]
|
[ "$current_repository" != "$last_repository" ]
|
||||||
|
if type -q onefetch
|
||||||
onefetch
|
onefetch
|
||||||
end
|
end
|
||||||
|
end
|
||||||
set -gx last_repository $current_repository
|
set -gx last_repository $current_repository
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user