Do not hardcode Linux distro
This commit is contained in:
parent
78d1980b37
commit
413f560583
2 changed files with 5 additions and 3 deletions
|
|
@ -1,3 +1,3 @@
|
||||||
if status --is-interactive
|
if status --is-interactive; and test -f /etc/os-release
|
||||||
fastfetch -c ~/.config/fastfetch.json
|
fastfetch --logo (grep -Ee '^ID=' /etc/os-release | sed 's,ID="\(.*\)-.*",\1,g') -c ~/.config/fastfetch.json
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/bash
|
#!/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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue