this post was submitted on 08 Sep 2023
134 points (98.6% liked)

Linux

47361 readers
1194 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I'm reconsidering my terminal emulator and was curious what everyone was using.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 2 points 1 year ago (1 children)

ah yes sorry i meant copy to system clipboard.

i succeed in configuring vim so it uses the system clipboard on both local and remote sessions.

i would like to do the same with tmux, but as you said too, it does not seem to be a way.

[–] [email protected] 4 points 1 year ago

You absolutely can. You just have to use a clipboard command as the copy/paste. Add this to your ~/.tmux.conf

bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -b"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xsel -i -b"

or use your favorite cli clipboard command. Note that those are using the vi bindings; you might have to adapt the config.