term: Fix wrapper scripts in NixOS. Thanks Tdeo.
This commit is contained in:
parent
2caec13bf3
commit
4f727b1de3
4
neofetch
4
neofetch
|
@ -2887,9 +2887,9 @@ get_term() {
|
||||||
term="${name##*/}"
|
term="${name##*/}"
|
||||||
|
|
||||||
# Fix wrapper names in NixOS.
|
# Fix wrapper names in NixOS.
|
||||||
[[ "$term" == .*-wrap* ]] && {
|
[[ "$distro" == NixOS* && $term == .*-* ]] && {
|
||||||
term="${term#.}"
|
term="${term#.}"
|
||||||
term="${term%-wrap*}"
|
term="${term%-*}"
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Reference in New Issue