Skip to content

Commit

Permalink
Remove tmux-sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
smh committed May 2, 2020
1 parent 7320983 commit 603ce6e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
37 changes: 37 additions & 0 deletions .config/tmux/conf.d/sensisble-options.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# vi:syntax=tmux

# options from tmux-sensible

# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0

# increase scrollback buffer size
set -g history-limit 50000

# tmux messages are displayed for 4 seconds
set -g display-time 4000

# refresh 'status-left' and 'status-right' more often
set -g status-interval 5

# upgrade $TERM, tmux 2.0+
set -s default-terminal "screen-256color"

# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs

# focus events enabled for terminals that support them
set -g focus-events on

# super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on

# easier switching between next/prev window
bind-key C-p previous-window
bind-key C-n next-window

# source `.tmux.conf` file - as suggested in `man tmux`
bind-key R run-shell ' \
tmux source-file ~/.tmux.conf > /dev/null; \
tmux display-message "Sourced .tmux.conf!"'
12 changes: 5 additions & 7 deletions .config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ setenv -g SSH_AUTH_SOCK $HOME/.ssh/ssh_auth_sock
# Make mouse useful in copy mode
set-option -g mouse on

# bind j split-window -v
bind C-j split-window -v
# bind C-j split-window -v
bind C-j split-window -v -c "#{pane_current_path}"

# bind l split-window -h
bind C-l split-window -h
# bind C-l split-window -h
bind C-l split-window -h -c "#{pane_current_path}"

# start numbering at 1
set -g base-index 1
Expand All @@ -26,8 +26,6 @@ setw -g mode-keys vi
# don't like the default 'copy-pipe-and-cancel'
set -g @yank_action 'copy-pipe'

#set-option -sg escape-time 10

source-file -q $HOME/.config/tmux/conf.d/*.conf

bind h select-pane -L
Expand All @@ -45,7 +43,7 @@ set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
Expand Down

0 comments on commit 603ce6e

Please sign in to comment.