1
0

minor terminal fixup

This commit is contained in:
Konstantin Demin 2023-07-20 00:31:30 +03:00
parent e76ed11c36
commit 25c314caa9
Signed by: krd
GPG Key ID: 1F33CB0BA4731BC6

View File

@ -6,7 +6,7 @@ function {
for i ( ${ZSHU_PARENTS_PID} ) ; do
[ -r "/proc/$i/environ" ] || continue
x=$(sed -zEn '/^TERM=(.+)$/{s//\1/;p;}' "/proc/$i/environ")
x=$(sed -zEn '/^TERM=(.+)$/{s//\1/;p;}' "/proc/$i/environ" 2>/dev/null)
[ -n "$x" ] || continue
a+=( "$x" )
done