Last active
April 20, 2022 06:37
-
-
Save zz-jason/1c5146f12b8a682e10aab12135523ff6 to your computer and use it in GitHub Desktop.
This file contains 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
############################################################################### | |
# COLOUR (Solarized dark) # | |
############################################################################### | |
set-option -g status-style fg=yellow,bg=black #yellow and base02 | |
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default | |
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default | |
set-option -g pane-border-style fg=black #base02 | |
set-option -g pane-active-border-style fg=brightgreen #base01 | |
set-option -g message-style fg=brightred,bg=black #orange and base01 | |
set-option -g display-panes-active-colour blue #blue | |
set-option -g display-panes-colour brightred #orange | |
set-window-option -g clock-mode-colour green #green | |
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red | |
# Navigate using vi shortcuts | |
set-window-option -g mode-keys vi | |
set-window-option -g monitor-activity on | |
set-window-option -g pane-base-index 1 | |
############################################################################### | |
# Self COnfiguration # | |
############################################################################### | |
# Set prefix key | |
unbind C-b | |
set -g prefix C-a | |
bind-key C-a send-prefix | |
# Set escape time | |
set -sg escape-time 1 | |
# Set status bar | |
set -g base-index 1 | |
set -g visual-activity on | |
set -g status-left-length 40 | |
set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=cyan]#P" | |
set -g status-right "#[fg=cyan]%Y-%m-%d %R" | |
set -g status-interval 60 | |
set -g status-justify centre | |
# Create a new window | |
bind-key c new-window -c '#{pane_current_path}' | |
# Split window | |
#set-option default-path "$PWD" | |
bind-key | split-window -h -c '#{pane_current_path}' | |
bind-key - split-window -v -c '#{pane_current_path}' | |
# Select window | |
bind-key -r C-h select-window -t :- | |
bind-key -r C-l select-window -t :+ | |
unbind a | |
bind-key a last-window | |
# Select pane | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Resize Pane | |
bind-key -r H resize-pane -L 5 | |
bind-key -r J resize-pane -D 5 | |
bind-key -r K resize-pane -U 5 | |
bind-key -r L resize-pane -R 5 | |
# Reload config | |
bind-key r source-file $HOME/.tmux.conf; display "$HOME/.tmux.conf Reloaded!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment