term: Fix wrapper scripts in NixOS. Thanks Tdeo.
This commit is contained in:
parent
f01ebe4ac8
commit
3e92b3b202
11
neofetch
11
neofetch
|
@ -2882,7 +2882,16 @@ get_term() {
|
||||||
"urxvtd") term="urxvt" ;;
|
"urxvtd") term="urxvt" ;;
|
||||||
*"nvim") term="Neovim Terminal" ;;
|
*"nvim") term="Neovim Terminal" ;;
|
||||||
*"NeoVimServer"*) term="VimR Terminal" ;;
|
*"NeoVimServer"*) term="VimR Terminal" ;;
|
||||||
*) term="${name##*/}" ;;
|
|
||||||
|
*)
|
||||||
|
term="${name##*/}"
|
||||||
|
|
||||||
|
# Fix wrapper names in NixOS.
|
||||||
|
[[ "$term" == .*-wrapped ]] && {
|
||||||
|
term="${term#.}"
|
||||||
|
term="${term%-wrapped}"
|
||||||
|
}
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Reference in New Issue