From b28ebc44e4eefb1ed1130cdf7fdec2ddfd76e3e6 Mon Sep 17 00:00:00 2001 From: Tim Felgentreff Date: Tue, 5 Jul 2016 10:08:27 +0200 Subject: [PATCH] Fallback for getting the pane_current_path This might fix #131 and maybe other people's issues where pane_current_path is sometimes not set correctly (happens with Tmux 2.0 on CentOS) --- scripts/save.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/save.sh b/scripts/save.sh index 137e229..4247c8f 100755 --- a/scripts/save.sh +++ b/scripts/save.sh @@ -41,7 +41,7 @@ pane_format() { format+="${delimiter}" format+="#{pane_index}" format+="${delimiter}" - format+=":#{pane_current_path}" + format+=":#{?pane_current_path,#{pane_current_path},#(lsof -t #{pane_tty} | head -1 | xargs -I % readlink -e /proc/%/cwd)}" format+="${delimiter}" format+="#{pane_active}" format+="${delimiter}"