Create config dir + add tmux conf
This commit is contained in:
parent
ba7cf80640
commit
3b7a3acc93
2 changed files with 49 additions and 0 deletions
49
config/tmux.conf
Normal file
49
config/tmux.conf
Normal file
|
@ -0,0 +1,49 @@
|
|||
unbind C-b
|
||||
set -g prefix C-z
|
||||
|
||||
|
||||
# http://gerard.geekandfree.org/blog/2010/11/10/tmux-loutil-magique-pour-gerer-vos-terminaux-1/
|
||||
|
||||
# UTF-8
|
||||
# set-option -g status-utf8 on
|
||||
# set-window-option -g utf8 on
|
||||
|
||||
# Set 256-colour terminal
|
||||
set -g default-terminal "screen-256color"
|
||||
|
||||
# Number of lines held in window history
|
||||
set -g history-limit 10000
|
||||
|
||||
# Set status bar
|
||||
set -g status-bg black
|
||||
set -g status-fg white
|
||||
set -g status-interval 60
|
||||
set -g status-left-length 30
|
||||
set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
|
||||
|
||||
# Highlight active window
|
||||
setw -g window-status-current-style bg=blue
|
||||
# Set window notifications
|
||||
setw -g monitor-activity on
|
||||
set -g visual-activity on
|
||||
|
||||
# Automatically set window title
|
||||
setw -g automatic-rename on
|
||||
|
||||
# Use mouse to select pane
|
||||
# set-window-option -g mouse-select-pane on
|
||||
# set-window-option -g mode-mouse on
|
||||
|
||||
|
||||
# Mode-keys style for copy mode
|
||||
setw -g mode-keys emacs
|
||||
|
||||
# http://www.addthis.com/bookmark.php?url=https%3A%2F%2Flearn.redhat.com%2Ft5%2FPlatform-Linux%2FUsing-tmux-to-execute-commands-on-servers-in-parallel%2Ftd-p%2F2200&title=Re%3A+Using+tmux+to+execute+commands+on+servers+in+parallel&username=PoweredByLithium
|
||||
bind-key e setw synchronize-panes on
|
||||
bind-key E setw synchronize-panes off
|
||||
|
||||
# https://woss.name/articles/tmux-new-windows-in-current-directory/
|
||||
bind-key c new-window -c '#{pane_current_path}'
|
||||
bind-key '"' split-window -c '#{pane_current_path}'
|
||||
bind-key % split-window -h -c '#{pane_current_path}'
|
||||
bind-key S command-prompt "new-session -A -c '#{pane_current_path}' -s '%%'"
|
Loading…
Reference in a new issue