Skip to content

Instantly share code, notes, and snippets.

@prachauthit
Last active September 26, 2023 18:49
Show Gist options
  • Save prachauthit/595cd3596267b303cc77fe0409c33530 to your computer and use it in GitHub Desktop.
Save prachauthit/595cd3596267b303cc77fe0409c33530 to your computer and use it in GitHub Desktop.
# create or add this to ur ~/.tmux.conf
#set prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g history-limit 100000
set -g allow-rename off
bind-key j command-prompt -p "Join pan from:" "join-pane -s :'%%'"
bind-key s command-prompt -p "Send pane to:" "join-pane -t :'%%'"
set-window-option -g mode-keys vi
run-shell /opt/tmux-logging/logging.tmux
@h4n0sh1
Copy link

h4n0sh1 commented Jan 12, 2021

In tmux 3.1c+

Change these lines :
bind-key j command-prompt -p "Join pan from:" "join-pane -s '%%'"
bind-key s command-prompt -p "Send pane to:" "join-pane -t '%%'"

To this :
bind-key j command-prompt -p "Join pan from:" "join-pane -s :'%%'"
bind-key s command-prompt -p "Send pane to:" "join-pane -t :'%%'"

Reference : tmux/tmux#1256 (comment)

@prachauthit
Copy link
Author

@h4n0sh1 cheers mate, I've updated

@retsek860
Copy link

Spelling mistake:

Change "Join pan from..." in line 11 to "Join pane from..."

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment