mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-02 12:47:04 +00:00
@ -10,8 +10,15 @@ exit_safely_if_empty_ppid() {
|
||||
fi
|
||||
}
|
||||
|
||||
ps_command_flags() {
|
||||
case $(uname -s) in
|
||||
FreeBSD) echo "-ao" ;;
|
||||
*) echo "-eo" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
full_command() {
|
||||
ps -eo "ppid command" |
|
||||
ps "$(ps_command_flags)" "ppid command" |
|
||||
sed "s/^ *//" |
|
||||
grep "^${PANE_PID}" |
|
||||
cut -d' ' -f2-
|
||||
|
Reference in New Issue
Block a user