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)
This commit is contained in:
parent
b8cc90a7f4
commit
b28ebc44e4
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue