Commit 4f727b1d authored by Dylan Araps's avatar Dylan Araps

term: Fix wrapper scripts in NixOS. Thanks Tdeo.

parent 2caec13b
......@@ -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
......
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