1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-15 20:25:17 +03:00
aports/testing/tmux-resurrect/ps.patch
Thomas Faughnan 36c4a2834b testing/tmux-resurrect: new aport
https://github.com/tmux-plugins/tmux-resurrect
Persists tmux environment across system restarts
2022-09-21 08:36:24 +00:00

16 lines
529 B
Diff

Author: Thomas Faughnan <tom@tjf.sh>
URL: https://github.com/tmux-plugins/tmux-resurrect/pull/455 (awaiting upstream merge)
Summary: Fix ps arguments to work for busybox
diff --git a/save_command_strategies/ps.sh b/save_command_strategies/ps.sh
index 544426c..15bb5aa 100755
--- a/save_command_strategies/ps.sh
+++ b/save_command_strategies/ps.sh
@@ -11,7 +11,7 @@ exit_safely_if_empty_ppid() {
}
full_command() {
- ps -ao "ppid command" |
+ ps -ao "ppid,args" |
sed "s/^ *//" |
grep "^${PANE_PID}" |
cut -d' ' -f2-