I used to use plugin tmux-yank for copying text, but once this started happening I disabled the plugin, but standard copy-selection command gives the same result - it kills the tmux session, so when I restart my terminal it gives me a fresh shell (you can see I have a binding for this command in my config below):
Spoiler
`cat ~/.tmux.conf | xclip`
```
# With this enabled, moving to previous/next window starts behaving wrong, sometimes switching to wrong window
# set -g @plugin 'tmux-plugins/tmux-sensible'
# 0 is too far from ` ;)
set -g base-index 1
# Use fish shell
set-option -g default-shell "/usr/bin/fish"
# Mouse
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g mouse on
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
unbind C-b
set -g prefix C-f
bind C-f send-prefix
set-option -s escape-time 0
# focus events enabled for terminals that support them
set-option -g focus-events on
setw -g mode-keys vi
setw -g monitor-activity on
set-option -g default-terminal screen-256color
bind n previous-window
bind p next-window
set -g @scroll-speed-num-lines-per-scroll "5"
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
set -g history-limit 10000
setw -g window-status-current-style fg=black,bg=green,bold
# THEME
set -g status-bg black
set -g status-fg white
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami) '
set -g status-right '#[fg=yellow]#[default] #[fg=white]%H:%M#[default]'
set-option -g renumber-windows on
# Copying
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-selection
#bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
set -s set-clipboard external
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com/user/plugin'
# set -g @plugin 'git@bitbucket.com/user/plugin'
# Plugins
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
# https://github.com/tmux-plugins/tmux-yank
#set -g @plugin 'tmux-plugins/tmux-yank'
# https://github.com/tmux-plugins/tmux-yank#linux-clipboards
#set -g @yank_selection 'secondary'
```
What could be the problem? I can't copy anything from terminal : (
My
tmux
version is 3.2a, my OS is ManjaroI used to use plugin
tmux-yank
for copying text, but once this started happening I disabled the plugin, but standardcopy-selection
command gives the same result - it kills the tmux session, so when I restart my terminal it gives me a fresh shell (you can see I have a binding for this command in my config below):Spoiler `cat ~/.tmux.conf | xclip`
``` # With this enabled, moving to previous/next window starts behaving wrong, sometimes switching to wrong window # set -g @plugin 'tmux-plugins/tmux-sensible' # 0 is too far from ` ;) set -g base-index 1 # Use fish shell set-option -g default-shell "/usr/bin/fish" # Mouse set -g @plugin 'nhdaly/tmux-better-mouse-mode' set -g mouse on # Automatically set window title set-window-option -g automatic-rename on set-option -g set-titles on unbind C-b set -g prefix C-f bind C-f send-prefix set-option -s escape-time 0 # focus events enabled for terminals that support them set-option -g focus-events on setw -g mode-keys vi setw -g monitor-activity on set-option -g default-terminal screen-256color bind n previous-window bind p next-window set -g @scroll-speed-num-lines-per-scroll "5" set -g terminal-overrides 'xterm*:smcup@:rmcup@' set -g history-limit 10000 setw -g window-status-current-style fg=black,bg=green,bold # THEME set -g status-bg black set -g status-fg white set -g status-interval 60 set -g status-left-length 30 set -g status-left '#[fg=green](#S) #(whoami) ' set -g status-right '#[fg=yellow]#[default] #[fg=white]%H:%M#[default]' set-option -g renumber-windows on # Copying bind-key -Tcopy-mode-vi 'v' send -X begin-selection bind-key -Tcopy-mode-vi 'y' send -X copy-selection #bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" set -s set-clipboard external # Other examples: # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'git@github.com/user/plugin' # set -g @plugin 'git@bitbucket.com/user/plugin' # Plugins # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' # List of plugins set -g @plugin 'tmux-plugins/tpm' # https://github.com/tmux-plugins/tmux-yank #set -g @plugin 'tmux-plugins/tmux-yank' # https://github.com/tmux-plugins/tmux-yank#linux-clipboards #set -g @yank_selection 'secondary' ```What could be the problem? I can't copy anything from terminal : (