Skip to content
Permalink
Browse files

formatting updates for `tmux.conf`

  • Loading branch information...
ipatch committed Jan 26, 2019
1 parent 398be7f commit c6989ffd197986b6ecc23d558877489bfe81bfd9
Showing with 12 additions and 10 deletions.
  1. +1 βˆ’1 .wiki
  2. +11 βˆ’9 terms/tmux/tmux.conf
2 .wiki
Submodule .wiki updated from af025e to cf3973
@@ -40,7 +40,7 @@ set -g status-justify centre # center the window list in status line

# NOTE: the below option sets / displays the tmux session name up to 50 characters long. It can be seen in the lower left of the tmux status bar. ;)
set -g status-left-length 50
set -g status-left '#S ' # modify the default left status bar, rm `[]`
set -g status-left '#S ' # modify the default left status bar, rm `[]`
set -g status-right "#(~/.local/bin/battery) #[fg=cyan]%d %b %R"

##############################
@@ -57,8 +57,8 @@ set -g history-limit 200000 # Scrollback for weeks (default is 2000)
bind - split-window -v -c "#{pane_current_path}" # split pane and preserve path
bind \ split-window -h -c "#{pane_current_path}" # split pane and preserve path


# NOTE: Resize pane with `Shift+Control+{←,↑,β†’,↓}`
# TODO below bindings are presently busted
bind -n S-C-Left resize-pane -L 10
bind -n S-C-Right resize-pane -R 10
bind -n S-C-Down resize-pane -D 5
@@ -67,9 +67,9 @@ bind -n S-C-Up resize-pane -U 5
##############################
# NOTE: `setw` is short for `set-window-option`
##
setw -g base-index 1 # begin window numbering at 1 instead of
setw -g base-index 1 # begin window numbering at 1 instead of 0
setw -g renumber-windows on
setw -g mode-keys vi # Vim style navigation in copy mode
setw -g mode-keys vi # Vim style navigation in copy mode
set -g default-shell $SHELL
set -g mouse on

@@ -79,9 +79,10 @@ set -g mouse on
bind -n S-Up new-window -c '#{pane_current_path}' # new window preserve path
bind -n S-down new-window -c '#{pane_current_path}'# new window preserve path
bind -n S-left prev # goto the previous window
bind -n S-right next # goto the next window
bind -n C-left swap-window -t -1 # move the window to the left
bind -n C-right swap-window -t +1 # move the window to the right
bind -n S-right next # goto the next window
# NOTE macOS multi desktops breaks below bindings
bind -n C-left swap-window -t -1 # move the window to the left
bind -n C-right swap-window -t +1 # move the window to the right

##############################
# seemless integration between vim & tmux keybindings
@@ -105,7 +106,7 @@ bind-key -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -
##############################
# TERM adapting tmux to work with term title bars
##
set -g set-titles on # set-titles-string
set -g set-titles on # set-titles-string
set -g set-titles-string "#{session_name} - #T"

# rename window / pane to current job / process.
@@ -146,5 +147,6 @@ set-option -g focus-events on
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# Initialize TMUX plugin manager
# NOTE πŸ‘‡ must be last line in `tmux.conf`
run '~/.tmux/plugins/tpm/tpm'

0 comments on commit c6989ff

Please sign in to comment.
You can’t perform that action at this time.