From 785ba173a322720b3c99d2f60eb900e7d2ed1da5 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Fri, 12 May 2017 14:37:52 +0200 Subject: [PATCH] worked around tmux 2.4 not properly refreshing status, see tmux/tmux#922 --- .tmux.conf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index c08b507..8367567 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -486,9 +486,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # } # # _root() { -# username=$(_username "$tty" false "$@") +# tty=${1:-$(tmux display -p '#{pane_tty}')} +# username=$(_username "$tty" false) +# # if [ x"$username" = x"root" ]; then # tmux show -gqv '@root' +# else +# echo "" # fi # } #