1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-21 17:27:13 +01:00

add tmux config

This commit is contained in:
Matthias Kretschmann 2017-05-07 01:20:00 +02:00
parent 9efa9f32bf
commit d12b1a2c03
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
3 changed files with 89 additions and 2 deletions

View File

@ -15,7 +15,7 @@
dir=$DOTFILES_DIR dir=$DOTFILES_DIR
# list of files/folders to symlink in homedir # list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin tmux.conf"
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------

View File

@ -15,7 +15,7 @@
dir=$DOTFILES_DIR dir=$DOTFILES_DIR
# list of files/folders to symlink in homedir # list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_paths bash_prompt editorconfig exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin" files="aliases bashrc bash_profile bash_paths bash_prompt editorconfig exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin tmux.conf"
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -43,3 +43,5 @@ done
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
source ~/.bash_profile source ~/.bash_profile
exit

85
tmux.conf Normal file
View File

@ -0,0 +1,85 @@
set -g default-terminal "screen-256color"
set -g base-index 1
set -g history-limit 10000
set-option -g mouse on
# panes
set -g pane-border-fg "#444444"
set -g pane-active-border-fg "#444444"
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
set -g display-time 1000
set -g status-interval 10
set-window-option -g window-status-fg colour148
set-window-option -g window-status-bg black
set-window-option -g window-status-attr bright
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg "#444444"
set-window-option -g window-status-current-attr bold
set-window-option -g window-status-activity-fg colour202
set-window-option -g window-status-activity-bg "#444444"
set-window-option -g window-status-activity-attr bold
set -g window-status-format "#[fg=#d75f00]#I#[fg=default] #W"
set -g window-status-current-format "#[fg=#d75f00]#I#[fg=default] #W"
# status config
set -g status-left-length 70
set -g status-right-length 70
set -g status-left '#[fg=colour202]#H'
set -g status-right "uptime #(uptime | awk '{print $3}'|sed 's/,//') #[fg=colour148] %H:%M"
set -g status-fg white
set -g status-bg default
set-option -g status-position bottom
# keys
#unbind C-b
#set -g prefix C-a
set -g status-keys vi
setw -g mode-keys vi
# resize
bind -n M-, resize-pane -L 30
bind -n M-. resize-pane -R 30
# creating windows
bind -n M-w new-window
# kill current window
bind -n M-k confirm kill-window
# creating splits
bind -n M-S split-window -v
bind -n M-s split-window -h
# switching panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# switching windows
bind -n M-u select-window -t :-
bind -n M-i select-window -t :+
# reload configuration
bind -n M-r source-file ~/.tmux.conf
# detach
bind-key -n C-M-q detach
set -s escape-time 0