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)
pull/152/head
Tim Felgentreff 2016-07-05 10:08:27 +02:00 committed by GitHub
parent b8cc90a7f4
commit b28ebc44e4
1 changed files with 1 additions and 1 deletions

View File

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