Skip to content

Commit

Permalink
Better keymap for tmux panes
Browse files Browse the repository at this point in the history
  • Loading branch information
aminfara committed Oct 24, 2024
1 parent e7faae0 commit 307db06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ bind C-Space send-prefix
# reload config
bind C-r source-file ~/.tmux.conf \; display-message "Config reloaded..."

bind \ split-window -h # Split panes horizontal
bind | split-window -h # Split panes horizontal
bind - split-window -v # Split panes vertically

set-window-option -g mode-keys vi

# Start windows and panes at 1, not 0
Expand Down Expand Up @@ -47,3 +43,10 @@ if "test ! -d ~/.tmux/plugins/tpm" \

# Initialize TMUX plugin manager
run '~/.tmux/plugins/tpm/tpm'

# replace tmux-pain-control keymap, need to be after TPM run to replace
unbind "\\"
unbind "|"
bind-key "\\" split-window -h -c "#{pane_current_path}"
bind-key "|" split-window -fh -c "#{pane_current_path}"

3 changes: 2 additions & 1 deletion zshrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,11 @@ myzsh_activate_antigen() {
if [ $MACHINE_TYPE = "Mac" ]; then
antigen bundle macos
fi
antigen bundle git
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-history-substring-search
antigen bundle git
antigen bundle tmux
antigen bundle vi-mode
antigen apply

Expand Down

0 comments on commit 307db06

Please sign in to comment.