Permalink
Browse files

added tmux config

  • Loading branch information...
1 parent 65b04fd commit 3c246de4e627b00623b619158075bf831bda6bbd @sharfah committed Oct 1, 2011
Showing with 68 additions and 1 deletion.
  1. +7 −1 .bashrc
  2. +61 −0 .tmux.conf
View
@@ -2,6 +2,12 @@
# bashrc
#
+if [[ "$TERM" != "screen" ]]
+then
+ # try to attach to existing session, or start a new one
+ tmux -2 attach-session -t "$USER" || tmux -2 new-session -s "$USER"
+ exit
+fi
export HOSTFILE=~/.hosts
export PATH=$PATH:~/bin
@@ -58,7 +64,7 @@ export ANT_ARGS='-logger org.apache.tools.ant.listener.AnsiColorLogger'
export CDPATH=".::..:../..:~/:~/dev/"
. ~/.bash/.bash_prompt
-. ~/.bash/.bash_completion
+. ~/.bash/.bash_dyncompletion
. ~/.bash/.bash_aliases
. ~/.bash/.bash_functions
export INPUTRC=~/.bash/.bash_inputrc
View
@@ -0,0 +1,61 @@
+#
+# tmux configuration file
+#
+
+# intuitive splitting
+bind | split-window -h
+bind - split-window -v
+bind _ split-window -v
+
+#reload this file
+bind R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded!"
+
+bind / command-prompt -p "man" "split-window -h 'man %%'"
+bind S command-prompt -p "ssh" "new-window -n %1 'exec ssh %1'"
+bind h split-window -h "man tmux"
+
+set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+
+set -g history-limit 9999
+
+# Terminal emulator window title
+set -g set-titles on
+set -g set-titles-string '#S:#I.#P #W'
+
+# notifications
+setw -g monitor-activity on
+setw -g visual-activity on
+
+# auto rename
+setw -g automatic-rename on
+
+# Clock
+setw -g clock-mode-colour green
+setw -g clock-mode-style 24
+
+# Window status colours
+setw -g window-status-bg colour235
+setw -g window-status-fg colour248
+setw -g window-status-alert-attr underscore
+setw -g window-status-alert-bg colour235
+setw -g window-status-alert-fg colour248
+setw -g window-status-current-attr bright
+setw -g window-status-current-bg colour235
+setw -g window-status-current-fg colour248
+
+# Message colours
+set -g message-bg colour240
+set -g message-fg yellow
+set -g message-attr bright
+
+# Minimalistic Status Bar
+set -g status-bg colour235
+set -g status-fg colour248
+set -g status-interval 1
+set -g status-left '[#H]'
+set -g status-right ''
+
+set -g pane-border-fg white
+set -g pane-border-bg default
+set -g pane-active-border-fg white
+set -g pane-active-border-bg default

0 comments on commit 3c246de

Please sign in to comment.