Skip to content

Commit

Permalink
Merge pull request #1 from napalm255/feature_update
Browse files Browse the repository at this point in the history
added auto renumber. added split pane on current directory.
  • Loading branch information
napalm255 authored Mar 17, 2023
2 parents 2ea13ce + f3fd98a commit 141efa7
Showing 1 changed file with 20 additions and 36 deletions.
56 changes: 20 additions & 36 deletions tmux.conf
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
#
# Global settings
#
# Global Configuration
#

# misc options
set-option -g default-terminal "screen-256color"
set-option -g history-limit 10000
set-option -s escape-time 0
set-option -g renumber-windows on
set-window-option -g allow-rename off
set-window-option -g automatic-rename off

# add prefix key of ctrl-a
set-option -g prefix2 C-a
bind C-a send-prefix -2
# color
set-option -g pane-border-style fg=colour235
set-option -g pane-active-border-style fg=colour240
set-option -g message-style fg=colour166,bg=colour235
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
set-option -g status-style fg=colour136,bg=colour236,default
set-option -g window-status-style fg=colour136,bg=colour238,none
set-option -g window-status-current-style fg=black,bg=colour23,none

# status
set-option -g status on
Expand All @@ -25,47 +31,25 @@ set-option -g status-left "#[fg=colour236,nounderscore]#[default,bold,noundersco
set-option -g status-keys vi
set-option -g display-time 2000

# color
set-option -g pane-border-style fg=colour235
set-option -g pane-active-border-style fg=colour240
set-option -g message-style fg=colour166,bg=colour235
set-option -g display-panes-active-colour colour33
set-option -g display-panes-colour colour166
set-option -g status-style fg=colour136,bg=colour236,default
set-option -g window-status-style fg=colour136,bg=colour238,none
set-option -g window-status-current-style fg=black,bg=colour23,none

# tab format
# tabs
set-window-option -g window-status-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore]#[bg=colour240] #I #[fg=colour240,reverse]#[default]#[bg=colour240]#[nounderscore] #[default]#[fg=colour231,bg=colour240]#W#[nounderscore] #[fg=colour236,reverse]"
set-window-option -g window-status-current-format "#[fg=colour236,nounderscore]#[default,bold,nounderscore]#[bg=colour52] #I #[fg=colour240,reverse]#[default]#[bg=colour52]#[nounderscore] #[default]#[fg=colour231,bg=colour52]#W#[nounderscore] #[fg=colour236,reverse]"

# add prefix key of ctrl-a
set-option -g prefix2 C-a
bind C-a send-prefix -2

# reload settings
bind-key R \
source-file /etc/tmux.conf \;\
display "Reloaded configuration"

# handy binds
bind-key _ split-window -v
bind-key | split-window -h
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key % split-window -h -c "#{pane_current_path}"
bind-key _ split-window -v -c "#{pane_current_path}"
bind-key | split-window -h -c "#{pane_current_path}"
bind-key "`" split-window "exec htop"
bind-key / command-prompt "split-window 'exec man %%'"
bind-key k kill-window
bind-key K kill-session
#bind-key s set status
#bind-key "'" choose-window
#bind-key '"' choose-session
# mouse mode toggle
bind M \
set-option -g mode-mouse on \;\
set-option -g mouse-resize-pane on \;\
set-option -g mouse-select-pane on \;\
set-option -g mouse-select-window on \;\
display 'Mouse: ON'
bind m \
set-option -g mode-mouse off \;\
set-option -g mouse-resize-pane off \;\
set-option -g mouse-select-pane off \;\
set-option -g mouse-select-window off \;\
display 'Mouse: OFF'

0 comments on commit 141efa7

Please sign in to comment.