mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-02 12:47:04 +00:00
Remove cmdline dependency on base64 and perl
This commit is contained in:
@ -13,7 +13,7 @@ exit_safely_if_empty_ppid() {
|
||||
|
||||
full_command() {
|
||||
[[ -z "$CPID" ]] && exit 0
|
||||
cat /proc/${CPID}/cmdline | perl -ne 'print join(" ", map quotemeta, split(/\000/))' | base64 -w0
|
||||
cat /proc/${CPID}/cmdline | xargs -0 printf "%q "
|
||||
}
|
||||
|
||||
main() {
|
||||
|
Reference in New Issue
Block a user