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}"