Viktor Grahn il y a 3 ans
Parent
commit
8e6dcbce9f
1 fichiers modifiés avec 33 ajouts et 0 suppressions
  1. 33 0
      .tmux.conf

+ 33 - 0
.tmux.conf

@@ -1,9 +1,11 @@
 set -g default-terminal "xterm-256color"
 set -g display-panes-time 5000
 set -s set-clipboard off
+set -g history-limit 10000
 
 # Set vi key binding, and add the standard v and y
 setw -g mode-keys vi
+bind v copy-mode
 bind -T copy-mode-vi v send-keys -X begin-selection
 bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -i -selection clipboard'
 # Unbind enter to copy, use y like normal people
@@ -12,3 +14,34 @@ unbind -T copy-mode-vi Enter
 bind '"' split-window -c "#{pane_current_path}"
 bind % split-window -h -c "#{pane_current_path}"
 bind C new-window -c "#{pane_current_path}"
+
+bind r source-file ~/.tmux.conf
+
+# Vim keys for navigation between panes
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+# Styling
+set-option -g status-bg black
+set-option -g status-fg white
+set-option -g pane-active-border-style fg=grey
+set-option -g pane-border-style fg=grey
+
+# Left components
+set-option -g status-left-length 20
+# set-option -g status-left "#[bg=black, fg=grey] #(hostname -s):#{session_name}  "
+set-option -g status-left  "#[bg=black] "
+
+# Right components
+set-option -g status-right-length 50
+set-option -g status-right "#[fg=grey] %Y-%m-%d %H:%M "
+#set-option -g status-right "\
+##[fg=grey] \
+# #(ip -4 -o address show dev wlp3s0 | awk '{print $4}') \
+# %Y-%m-%d %H:%M "
+
+# Window list style
+set-window-option -g window-status-format "#[fg=grey]#I: #W "
+set-window-option -g window-status-current-format "#[fg=blue]#I: #W #[fg=grey]"