Commit c0cfcb3b authored by Dylan Araps's avatar Dylan Araps

term: Fix wrapper scripts in NixOS. Thanks Tdeo.

parent 4f727b1d
...@@ -2884,12 +2884,15 @@ get_term() { ...@@ -2884,12 +2884,15 @@ get_term() {
*"NeoVimServer"*) term="VimR Terminal" ;; *"NeoVimServer"*) term="VimR Terminal" ;;
*) *)
# Fix issues with long process names on Linux.
[[ $os == Linux ]] && term=$(realpath "/proc/$parent/exe")
term="${name##*/}" term="${name##*/}"
# Fix wrapper names in NixOS. # Fix wrapper names in NixOS.
[[ "$distro" == NixOS* && $term == .*-* ]] && { [[ $term == .*-wrapped ]] && {
term="${term#.}" term="${term#.}"
term="${term%-*}" term="${term%-wrapped}"
} }
;; ;;
esac esac
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment