Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add tmux configuration file

  • Loading branch information...
commit 953b1ea9236f1b173baeeed230fd0330c130db1a 1 parent 5084016
@nesono authored
Showing with 102 additions and 0 deletions.
  1. +102 −0 tmux.conf
View
102 tmux.conf
@@ -0,0 +1,102 @@
+# use C-a as prefix and free C-b
+set -g prefix C-a
+unbind C-b
+# issue keystrokes without delay
+set -sg escape-time 1
+# start window numbering from 1
+set -g base-index 1
+# start pane numbering from 1
+setw -g pane-base-index 1
+
+# reload configuration file
+bind r source-file ~/.tmux.conf \; display "Reloaded!"
+# send C-a to application by pressing it twice
+bind C-a send-prefix
+
+# redefine splitting shortcuts
+bind | split-window -h
+bind - split-window -v
+
+# remap movement keys for panes
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# to cycle through windows
+bind -r C-h select-window -t :-
+bind -r C-l select-window -t :+
+
+# resizing keys
+bind -r H resize-pane -L 5
+bind -r J resize-pane -D 5
+bind -r K resize-pane -U 5
+bind -r L resize-pane -R 5
+# increase repeat limit
+#set -g repeat-time 1000
+
+# enable mouse mode and pane selection
+setw -g mode-mouse on
+set -g mouse-select-pane on
+set -g mouse-resize-pane on
+set -g mouse-select-window on
+
+# enable 256 colors (default)
+#set -g default-terminal "screen-256color"
+
+# set color for status bar
+set -g status-fg white
+set -g status-bg colour232
+
+# window list colors - common
+setw -g window-status-fg colour248
+setw -g window-status-bg default
+setw -g window-status-attr dim
+
+# window list colors - current
+setw -g window-status-current-fg white
+setw -g window-status-current-bg colour240
+setw -g window-status-current-attr bright
+
+# pane divider colors
+set -g pane-border-fg colour253
+set -g pane-border-bg default
+set -g pane-active-border-fg colour240
+set -g pane-active-border-bg default
+
+# message colors
+set -g message-fg white
+set -g message-bg black
+set -g message-attr bright
+
+# configure status bar
+set -g status-left-length 40
+set -g status-left " #[fg=white]#S: #I|#P"
+set -g status-right "#[fg=white] %R %Y-%m-%d "
+set -g status-utf8 on
+
+# disable automatic renaming of window
+setw -g automatic-rename off
+
+# refresh status bar every 60 seconds
+#set -g status-interval 60
+
+# center the window list
+set -g status-justify centre
+
+# monitor activity
+setw -g monitor-activity on
+set -g visual-activity on
+
+# enable vi keys (hjkl, wbfF, etc.)
+#setw -g mode-keys vi
+
+# maximizing a pane
+unbind Up
+bind Up new-window -d -n maximize \; swap-pane -s maximize.1 \; select-window -t maximize
+# recover maximized pane
+unbind Down
+bind Down last-window \; swap-pane -s maximize.1 \; kill-window -t maximize
+
+# toogle logging to a file
+bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log"
Please sign in to comment.
Something went wrong with that request. Please try again.