mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-21 20:08:48 +00:00
parent
618769b62f
commit
1d09f07d2b
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
### master
|
||||
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
|
||||
|
||||
### v1.2.1, 2014-09-02
|
||||
- tweak 'new_pane' creation strategy to fix #36
|
||||
|
@ -47,7 +47,7 @@ This plugin goes to great lengths to save and restore all the details from your
|
||||
- restoring vim sessions (optional). More details in
|
||||
[restoring vim sessions](#restoring-vim-sessions).
|
||||
|
||||
Requirements / dependencies: `tmux 1.9` or higher, `pgrep`, `bash`.
|
||||
Requirements / dependencies: `tmux 1.9` or higher, `bash`.
|
||||
|
||||
`tmux-resurrect` is idempotent! It will not try to restore panes or windows that
|
||||
already exist.
|
||||
|
@ -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-
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user