Skip to content

Commit

Permalink
fix tmux issue with the clipboard on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborpilz committed Dec 30, 2023
1 parent 21637ab commit 3acebf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions home/modules/shell/tmux.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ in
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# Actually copy to clipboard (on Linux)
copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
# Attach current directory to session
bind a attach -c "#{pane_current_path}"
Expand Down

0 comments on commit 3acebf0

Please sign in to comment.