aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Beltran <ben@freshout.us>2012-10-19 15:48:25 -0500
committerBen Beltran <ben@freshout.us>2012-10-19 15:48:25 -0500
commitee6d2b11353c28d428b287752c0079f5ec407061 (patch)
tree13481cdf8ec6357c36eb8afc61bf80d567e43b9c
parent321ecaca67426410316db7db05e6e33809fe1e63 (diff)
Modify my tmux conf
-rw-r--r--tmux.conf27
-rw-r--r--zshrc1
2 files changed, 21 insertions, 7 deletions
diff --git a/tmux.conf b/tmux.conf
index 8919cad..02772c0 100644
--- 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 828d9f9..85e83ef 100644
--- 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"