Skip to content
Discussion options

You must be logged in to vote
# Use vi keybindings
setw -g mode-keys vi
set -g status-keys vi

# Set prefix to Ctrl+Space
unbind C-b

# Spawn a new window with the same command as current window (Alt + t)
bind -n M-t run-shell 'tmux new-window -c "#{pane_current_path}" "exec $(ps -o args= -p #{pane_pid} | tail -1)"'

# Move to next tab with Alt + ]
bind -n M-] next-window

# Move to previous tab with Alt + [
bind -n M-[ previous-window

# Enable mouse support
set -g mouse on

Kind of a hacky way, but it works.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by S1M0N38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant