Last active
May 15, 2020 02:31
-
-
Save nickylimjj/eb8c5d3a5eb666df910e0365e6c99f05 to your computer and use it in GitHub Desktop.
tmux conf file
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.conf | |
# tmux configuration file | |
# Created by NICKY LIM | |
# prefix t puts the timer on | |
# prefix ? shows help | |
unbind % | |
unbind '"' | |
# enable mouse scrolling | |
set -g mouse on | |
# window index starts at 1 | |
set -g base-index 1 | |
# Rename stuff | |
bind -n M-r command-prompt 'rename-window %%' | |
bind -n M-s command-prompt 'rename-session %%' | |
# Shift-arrow to switch windows | |
bind -n S-Left previous-window | |
bind -n S-Right next-window | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 | |
setw -g mode-keys vi | |
setw -g monitor-activity on | |
# create panes | |
bind-key v split-window -h -c "#{pane_current_path}" | |
bind-key h split-window -v -c "#{pane_current_path}" | |
# create windows | |
bind-key c new-window -c "#{pane_current_path}" | |
# moving panes between windows | |
bind-key j command-prompt -p "join pane from:" "join-pane -s %%" | |
bind-key s command-prompt -p "send pane to:" "join-pane -t %%" | |
# Use Alt-vim keys without prefix key to switch 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 | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# No delay for escape key press | |
set -sg escape-time 0 | |
# THEME | |
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)' | |
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%H:%M#[default]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment