Browse code

Novy clanok: powerline round 2

Cinan Rakosnik authored on 27/07/2013 at 15:49:11
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,55 @@
0
+---
1
+layout: post
2
+title: "Powerline round 2: better Tmux"
3
+date: 2013-07-27 17:15
4
+comments: true
5
+categories: [shell]
6
+cover: /images/cover/avatar.png
7
+keywords: shell, powerline, zsh, bash, fish, terminal, tmux
8
+description: Make your tmux powerline
9
+---
10
+
11
+Give to your Tmux power with Powerline. Clone
12
+[https://github.com/cinan/tmux-powerline](https://github.com/cinan/tmux-powerline),
13
+follow instructions and customize tmux. 
14
+
15
+My powerlined Tmux (and ZSH) looks like this:
16
+{% img fancybox /images/powerline-tmux.png %}
17
+
18
+Here's my `~/.tmux.conf`:
19
+
20
+	unbind C-b
21
+	bind C-a send-prefix
22
+
23
+	set -g base-index 1
24
+	set -g prefix C-a
25
+	set -g terminal-overrides 'xterm*:smcup@:rmcup@'
26
+	setw -g mode-mouse on
27
+	setw -g aggressive-resize off
28
+	set-option -g mouse-select-pane on
29
+	set-window-option -g mode-keys emacs
30
+	set-option -g visual-bell off
31
+	set -g set-titles-string ""
32
+
33
+	set -g mouse-select-window on
34
+	set -g mouse-select-pane on
35
+	set -g mouse-resize-pane on
36
+
37
+	set-option -g status on
38
+	set-option -g status-interval 2
39
+	set-option -g status-bg colour234
40
+	set-option -g status-utf8 on
41
+	set-option -g status-justify "left"
42
+	set-option -g status-right-length 90
43
+	set-option -g status-left ""
44
+	set-option -g status-right "#(~/system/misc/tmux-powerline/powerline.sh right)"
45
+
46
+	setw -g window-status-current-bg default
47
+	setw -g window-status-current-fg default
48
+	setw -g window-status-bg colour234
49
+	setw -g window-status-fg white
50
+	setw -g window-status-format '#[bg=colour234]#[fg=white] #I #[bg=default]#[fg=white] #W ⮁'
51
+	setw -g window-status-current-format '#[fg=black]#[bg=green] #I #[fg=black]#[bg=green] #W #[bg=colour234]#[fg=green]⮀'
52
+
53
+	bind-key r source ~/.tmux.conf
54
+
0 55
new file mode 100644
1 56
Binary files /dev/null and b/source/images/powerline-tmux.png differ