mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-04 14:28:03 +00:00
term: Fix wrapper scripts in NixOS. Thanks Tdeo.
This commit is contained in:
11
neofetch
11
neofetch
@@ -2882,7 +2882,16 @@ get_term() {
|
||||
"urxvtd") term="urxvt" ;;
|
||||
*"nvim") term="Neovim Terminal" ;;
|
||||
*"NeoVimServer"*) term="VimR Terminal" ;;
|
||||
*) term="${name##*/}" ;;
|
||||
|
||||
*)
|
||||
term="${name##*/}"
|
||||
|
||||
# Fix wrapper names in NixOS.
|
||||
[[ "$term" == .*-wrapped ]] && {
|
||||
term="${term#.}"
|
||||
term="${term%-wrapped}"
|
||||
}
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user