mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-24 22:08:46 +00:00
parent
a7fe9dcac3
commit
8fd38588c0
@ -7,6 +7,8 @@
|
|||||||
- save command strategy: 'gdb'
|
- save command strategy: 'gdb'
|
||||||
- rename default strategy name to 'ps'
|
- rename default strategy name to 'ps'
|
||||||
- create `expect` script that can fully restore tmux environment
|
- create `expect` script that can fully restore tmux environment
|
||||||
|
- fix default save command strategy `ps` command flags. Flags are different for
|
||||||
|
FreeBSD.
|
||||||
|
|
||||||
### v1.3.0, 2014-09-20
|
### v1.3.0, 2014-09-20
|
||||||
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
|
- remove dependency on `pgrep` command. Use `ps` for fetching process names.
|
||||||
|
@ -10,8 +10,15 @@ exit_safely_if_empty_ppid() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ps_command_flags() {
|
||||||
|
case $(uname -s) in
|
||||||
|
FreeBSD) echo "-ao" ;;
|
||||||
|
*) echo "-eo" ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
full_command() {
|
full_command() {
|
||||||
ps -eo "ppid command" |
|
ps "$(ps_command_flags)" "ppid command" |
|
||||||
sed "s/^ *//" |
|
sed "s/^ *//" |
|
||||||
grep "^${PANE_PID}" |
|
grep "^${PANE_PID}" |
|
||||||
cut -d' ' -f2-
|
cut -d' ' -f2-
|
||||||
|
Loading…
Reference in New Issue
Block a user