mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 12:09:55 +00:00
Set parent if it's unset
This commit is contained in:
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
Block a user