Blame powerline-2.4-fix_left_segment_tmux_2_1.patch
|
Andreas Schneider |
73ba1a2 |
From 4a688a74679adb37a74196c6147f493e46be0821 Mon Sep 17 00:00:00 2001
|
|
Andreas Schneider |
73ba1a2 |
From: Foo <kp-pav@yandex.ru>
|
|
Andreas Schneider |
73ba1a2 |
Date: Sat, 30 Apr 2016 16:39:51 +0300
|
|
Andreas Schneider |
73ba1a2 |
Subject: [PATCH] Fix left segments support in tmux-2.1
|
|
Andreas Schneider |
73ba1a2 |
|
|
Andreas Schneider |
73ba1a2 |
---
|
|
Andreas Schneider |
73ba1a2 |
powerline/bindings/tmux/powerline_tmux_2.1_plus.conf | 2 ++
|
|
Andreas Schneider |
73ba1a2 |
1 file changed, 2 insertions(+)
|
|
Andreas Schneider |
73ba1a2 |
create mode 100644 powerline/bindings/tmux/powerline_tmux_2.1_plus.conf
|
|
Andreas Schneider |
73ba1a2 |
|
|
Andreas Schneider |
73ba1a2 |
diff --git a/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf b/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf
|
|
Andreas Schneider |
73ba1a2 |
new file mode 100644
|
|
Andreas Schneider |
73ba1a2 |
index 0000000..6ee5c8b
|
|
Andreas Schneider |
73ba1a2 |
--- /dev/null
|
|
Andreas Schneider |
73ba1a2 |
+++ b/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf
|
|
Andreas Schneider |
73ba1a2 |
@@ -0,0 +1,2 @@
|
|
Andreas Schneider |
73ba1a2 |
+# Starting from tmux-2.1 escaping of dollar signs inside #() is harmful
|
|
Andreas Schneider |
73ba1a2 |
+set -qg status-left "#{?client_prefix,#[fg=$_POWERLINE_SESSION_PREFIX_FG]#[bg=$_POWERLINE_SESSION_PREFIX_BG]#[$_POWERLINE_SESSION_PREFIX_ATTR],#[fg=$_POWERLINE_SESSION_FG]#[bg=$_POWERLINE_SESSION_BG]#[$_POWERLINE_SESSION_ATTR]} #S #{?client_prefix,#[fg=$_POWERLINE_SESSION_PREFIX_BG],#[fg=$_POWERLINE_SESSION_BG]}#[bg=$_POWERLINE_BACKGROUND_BG]#[nobold]$_POWERLINE_LEFT_HARD_DIVIDER#(env $POWERLINE_COMMAND $POWERLINE_COMMAND_ARGS tmux left --width=`tmux display -p '#{client_width}'` -R width_adjust=`tmux show-options -g status-right-length | cut -d' ' -f2` -R pane_id=\"`tmux display -p '#D'`\")"
|