Set parent if it's unset

parent 8fc70c98
...@@ -2179,6 +2179,8 @@ END ...@@ -2179,6 +2179,8 @@ END
;; ;;
"st") "st")
[[ -z "$parent" ]] && parent="$(get_ppid "$PPID")"
term_font="$(ps -o command= -p "$parent" | grep -F -- "-f")" term_font="$(ps -o command= -p "$parent" | grep -F -- "-f")"
if [[ "$term_font" ]]; then if [[ "$term_font" ]]; then
term_font="${term_font/*-f/}" term_font="${term_font/*-f/}"
......
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