diff --git a/completions/fastfetch.fish b/completions/fastfetch.fish index 494de2730..7badab388 100755 --- a/completions/fastfetch.fish +++ b/completions/fastfetch.fish @@ -2,6 +2,11 @@ if not type -q fastfetch exit end +command -q python3 +if test $status -ne 0 + exit +end + complete -c fastfetch -f function __fastfetch_complete_bool diff --git a/completions/fastfetch.zsh b/completions/fastfetch.zsh index a6ce69279..5688c1745 100644 --- a/completions/fastfetch.zsh +++ b/completions/fastfetch.zsh @@ -1,6 +1,13 @@ #compdef fastfetch function _fastfetch() { + + whence python3 &> /dev/null + if [ $? -ne 0 ] + then + return + fi + local state local -a opts=("${(f)$(