From fdae4c140c14a0e3e737523cee5eb581cf9b3cc7 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 10 Apr 2026 10:47:20 +0100 Subject: [PATCH] Remove unnecessary reattach-to-user-namespace on macOS --- tmux.conf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tmux.conf b/tmux.conf index 5b23354..bc83610 100644 --- a/tmux.conf +++ b/tmux.conf @@ -62,10 +62,6 @@ set -ga terminal-overrides 'xterm*:smxx=\E[9m' bind a run-shell ~/.local/share/tmux/layouts/window-auto # TODO: bind A run-shell ~/.local/share/tmux/layouts/window-auto --refresh -# Set only on macOS where it's required -if -b '[ "`uname`" = "Darwin" ]' \ - 'set -g default-command "reattach-to-user-namespace -l $SHELL"' - if -b '~/.config/tmux/check-version.sh ">=" 3.2 && ~/.config/tmux/check-version.sh "<" 3.3' { bind A display-popup -d '#{pane_current_path}' -w 50% -h 90% -E ~/.config/tmux/agent.sh bind H display-popup -w 75% -h 75% -E htop @@ -158,9 +154,8 @@ if -b '[ "$SSH_TTY" != "" ]' \ 'set-option -g set-clipboard on' # Yank to the system clipboard in copy mode. -# TODO: reattach-to-user-namespace not necessary with tmux > 2.6 if -b '[ "`uname`" = "Darwin" ]' \ - 'bind -T copy-mode-vi y send-keys -X copy-pipe "reattach-to-user-namespace pbcopy"' + 'bind -T copy-mode-vi y send-keys -X copy-pipe "pbcopy"' # When not in WSL2 use xsel, when in WSL use win32yank.exe to avoid UI lockups. if -b '[ "$WSLENV" = "" ]' \ 'bind -T copy-mode-vi y send-keys -X copy-pipe "xsel -i --clipboard"' \