zsh: one-liner wooo
This commit is contained in:
parent
fe995df43d
commit
5fae6d1063
|
@ -13,8 +13,6 @@ declare -a is_remote
|
|||
is_remote=()
|
||||
|
||||
proctree="$(pstree -s $$)"
|
||||
for d in $remote_daemons[@]; do
|
||||
[[ "$proctree" =~ $d ]] && is_remote+="$d"
|
||||
done
|
||||
for d in $remote_daemons[@]; [[ "$proctree" =~ "$d" ]] && is_remote+="$d"
|
||||
|
||||
[ -n "$is_remote" ] && export IS_REMOTE_SESSION="$is_remote[@]"
|
||||
|
|
Loading…
Reference in a new issue