aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2018-12-14 13:22:26 +0100
committerDuncaen <mail@duncano.de>2018-12-14 13:22:26 +0100
commitf728e42545c69e4d22fa15e5d112d1f0d98cd171 (patch)
tree47a2cdf6a1d1d34c104c4408ced9c7383a776945
parentaea8860d4d70759884c72ec91a697585252d8420 (diff)
downloaddotfiles-f728e42545c69e4d22fa15e5d112d1f0d98cd171.tar.gz
tmux: use directory name in titles if its a shell
-rw-r--r--tmux.conf7
1 files changed, 5 insertions, 2 deletions
diff --git a/tmux.conf b/tmux.conf
index 80f6c99..6b65274 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -13,13 +13,16 @@ setw -g aggressive-resize on
# style
setw -g window-status-current-style bold
+set -g window-status-format "#I:#{?#{==:#W,mksh},$#{b:pane_current_path},#W}#F"
+set -g window-status-current-format "#I:#{?#{==:#W,mksh},$#{b:pane_current_path},#W}#F"
set -g status-style bg=default
-set -g status-interval 0
set -g status-right-length 0
set -g pane-active-border-style fg=default,bg=default
set -g set-titles on
-set -g set-titles-string "#H: #W"
+set -g set-titles-string "#H: #{?#{==:#W,mksh},$#{b:pane_current_path},#W}"
+
+set -g status-interval 0
# screen-like things
set -g prefix ^A