Created
June 4, 2018 15:13
-
-
Save kondor6c/ddb15048f592d856c05dfd83b3bd41c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TMUX | |
# | default | Function | Tmux | | |
# |----------|:------------------------------------:| -----------------------:| | |
# | ^A " | window list, where am I | ^b s | | |
# | ^A A | Rename | ^b , | | |
# | ^A c | create | ^b n | | |
# | ^A k | kill | ^b & | | |
# | ^A d | detach | ^b D | | |
# | ^A space | next window | ^b n | | |
# | ^A p | previous window | ^b p | | |
# | ^A | | Spilt vertical | ^b % | | |
# | ^A S | Spilt horizontal | ^b " | | |
# | ^A tab | change region focus | ^b arrows | | |
# | ^A X | Kill current region/focus | ^b x | | |
# | ^A ^A | switch to previous screen (toggle) | ^b | | |
# | ^A [0-9] | go to window [0-9] | ^b [0-9] | | |
# | ^A esc | for scrollback | ^b page up | | |
# | ^A [ | copy mode | ^b [ | | |
# | ^A ] | paste | p (vim) C-y (emacs) | | |
# | | monitor for "string" (append) | setw -g monitor-content | | |
# | | monitor silience (append interval) | setw -g monitor-silence | | |
# | ^A _ | silence activity monitor (off) | set -g visual-activity | | |
# | ^A M | start activity monitor (on) | set -g visual-activity | | |
# | | Synchronize keystrokes between panes | setw synchronize-panes | | |
# Behavior | |
set -g history-limit 3300 | |
#should increase VIM response time | |
set -sg escape-time 1 | |
#setw -g mode-keys vi | |
#set -g default-terminal "screen-256color" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g default-terminal "xterm" | |
bind r source-file ~/.tmux.conf \; display-message "Config reloaded." | |
#set titles in X to reflect what is going on in the tmux window | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
# Automatically set window title | |
set -g status-interval 30 | |
#might be taxing on the system | |
#setw -g automatic-rename | |
#i URXVT tab like window switching (-n: no prior escape seq) "See .Xdefaults ! | |
set-window-option -g xterm-keys on | |
new -s Primary -n root 'sudo su -' | |
neww -n other bash | |
neww -n bash bash | |
neww -n t1 bash | |
neww -n t2 bash | |
neww -n t3 bash | |
neww -n t4 bash | |
neww -n t5 bash | |
neww -n t6 bash | |
# Views | |
#------ | |
# color pallete: magenta, cyan, red, green, blue, yellow, cyan | |
# These options should turn red when activity occurs (s/activity/bell/) | |
# set-option -gw window-status-activity-attr bold | |
set-option -gw window-status-activity-bg black | |
set-option -gw window-status-activity-fg magenta | |
set-option -gw window-status-bell-fg red | |
set-option -gw window-status-bell-attr bold | |
set-option -gw window-status-bell-bg black | |
# easy method to copy output to a file: C-x : capture-pane -S -3000 | |
# Then: C-x : save-buffer ~/tmux.printscreen-by-hand.txt | |
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.printscreen.txt' 'capture-pane -S - ; save-buffer %1 ; delete-buffer' | |
# Kevin's color codes for tmux | |
# yellow = J "usually for personal configured remote connections | |
# cyan = space "usually for local connections, might be used with URXVT | |
# green = default 'b' "usually for unconfigured _default_ server connections | |
unbind C-b | |
#set -g prefix C-j | |
#set -g status-bg yellow | |
set -g prefix C-space | |
set -g status-bg cyan | |
#set -g mouse on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment