Set parent if it's unset
This commit is contained in:
parent
8fc70c9801
commit
0302d8eb9b
1 changed files with 2 additions and 0 deletions
2
neofetch
2
neofetch
|
@ -2179,6 +2179,8 @@ END
|
|||
;;
|
||||
|
||||
"st")
|
||||
[[ -z "$parent" ]] && parent="$(get_ppid "$PPID")"
|
||||
|
||||
term_font="$(ps -o command= -p "$parent" | grep -F -- "-f")"
|
||||
if [[ "$term_font" ]]; then
|
||||
term_font="${term_font/*-f/}"
|
||||
|
|
Loading…
Reference in a new issue