Remove dependency on pgrep; use ps to get process names

Fixes #43
This commit is contained in:
Bruno Sutic
2014-09-20 22:33:14 +02:00
parent 618769b62f
commit 1d09f07d2b
3 changed files with 5 additions and 3 deletions

View File

@ -66,8 +66,9 @@ dump_panes_raw() {
}
pane_full_command() {
pane_pid="$1"
\pgrep -lf -P "$pane_pid" |
local pane_pid="$1"
ps -eo "ppid command" |
grep "^${pane_pid}" |
cut -d' ' -f2-
}