Set parent if it's unset
This commit is contained in:
parent
8fc70c9801
commit
0302d8eb9b
2
neofetch
2
neofetch
|
@ -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/}"
|
||||||
|
|
Reference in New Issue