]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Modify my tmux conf
authorBen Beltran <redacted>
Fri, 19 Oct 2012 20:48:25 +0000 (15:48 -0500)
committerBen Beltran <redacted>
Fri, 19 Oct 2012 20:48:25 +0000 (15:48 -0500)
tmux.conf
zshrc

index 8919cad1ea8cc0e4a93ce148b70b21c2e5eb45c4..02772c0c9aa8f991d97fc8273a0abdab60556e99 100644 (file)
--- a/tmux.conf
+++ b/tmux.conf
@@ -15,13 +15,26 @@ bind | split-window -h
 bind - split-window -v
 
 #Customize the status bars.
-set -g status-bg cyan
-set -g status-fg white
-set -g status-left-length 24
-set -g status-left '#[fg=black]#[bg=white]#H-#S'
-set-window-option -g window-status-current-bg red
-set -g status-right '#[fg=black]#[bg=white]#(uptime)'
-set -g status-right-length 70
+# set -g status-bg cyan
+# set -g status-fg white
+# set -g status-left-length 24
+# set -g status-left '#[fg=black]#[bg=white]#H-#S'
+# set-window-option -g window-status-current-bg red
+# set -g status-right '#[fg=black]#[bg=white]#(uptime)'
+# set -g status-right-length 70
+
+# powerline tmux
+set-option -g status on
+set-option -g status-bg colour12
+set-option -g status-fg colour7
+set-window-option -g window-status-current-bg colour9
+set-option -g status-interval 2
+set-option -g status-utf8 on
+set-option -g status-justify "centre"
+set-option -g status-left-length 60
+set-option -g status-right-length 90
+set-option -g status-left "#(~/.dotfiles/tmux-powerline/status-left.sh)"
+set-option -g status-right "#(~/.dotfiles/tmux-powerline/status-right.sh)"
 
 #Set Activity monitoring.
 setw -g monitor-activity on
diff --git a/zshrc b/zshrc
index 828d9f9ee2afc145355f3e43168512b5013de7d0..85e83ef2d4c40fe98ca68a6c0ca30b4d0c05f3a5 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -37,6 +37,7 @@ export JAVA_HOME=$(/usr/libexec/java_home)
 export PATH=/usr/local/bin:/usr/local/sbin:$PATH
 export NODE_PATH=/usr/local/lib/node_modules:$NODE_PATH
 export PYTONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
+export PS1="$PS1"'$([ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#I_#P") "$PWD")'
 
 #Editor.
 export EDITOR="vim"