diff --git a/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish b/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish index 8a44798..a1e3f90 100644 --- a/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish +++ b/stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish @@ -1,3 +1,3 @@ -if status --is-interactive - fastfetch -c ~/.config/fastfetch.json +if status --is-interactive; and test -f /etc/os-release + fastfetch --logo (grep -Ee '^ID=' /etc/os-release | sed 's,ID="\(.*\)-.*",\1,g') -c ~/.config/fastfetch.json end diff --git a/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh b/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh index 4b7ac2a..ea1df64 100644 --- a/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh +++ b/stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh @@ -1,3 +1,5 @@ #!/bin/bash -[[ -n "$PS1" ]] && fastfetch -c ~/.config/fastfetch.json +[[ -n "$PS1" ]] && [[ -f /etc/os-release ]] && \ + fastfetch --logo "$(grep -Ee '^ID=' /etc/os-release | sed 's,ID="\(.*\)-.*",\1,g')" -c ~/.config/fastfetch.json +