term: Fix wrapper scripts in NixOS. Thanks Tdeo.
This commit is contained in:
parent
2caec13bf3
commit
4f727b1de3
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2887,9 +2887,9 @@ get_term() {
|
|||
term="${name##*/}"
|
||||
|
||||
# Fix wrapper names in NixOS.
|
||||
[[ "$term" == .*-wrap* ]] && {
|
||||
[[ "$distro" == NixOS* && $term == .*-* ]] && {
|
||||
term="${term#.}"
|
||||
term="${term%-wrap*}"
|
||||
term="${term%-*}"
|
||||
}
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue