From 413f56058367e1ff93f1ce8eddabc156623a2dda Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Sun, 1 Sep 2024 21:18:23 +0200 Subject: [PATCH] Do not hardcode Linux distro --- stowers/fastfetch/dot-config/fish/conf.d/99-fastfetch.fish | 4 ++-- stowers/fastfetch/dot-zshrc.d/99-fastfetch.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) 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 +