GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Panel 1: multiline It's SO scary when you paste a bunch of commands by accident and then it runs them all. fish, zsh, and newer bash versions protect you from this: you have to press Enter before running the thing you pasted. This is called "bracketed paste" panel 2: problem: copying with the mouse can go wrong - copying 400 lines of text by dragging is nobody's idea of a good time - sometimes extra whitespace that you didn't want gets added at the end of lines panel 3: person: “copying a LOT of text is way easier if you don't use the mouse! Here are 2 tricks for copying without the mouse. " panel 4: copy trick 1: pbcopy macOS comes with two programs that can copy from stdin / paste to stdout, like this: cat main.go | pbcopy They're SO useful and on Linux I like to write my own versions of pbcopy/pbpaste using xsel or xclip panel 5: pbcopy over SSH you can even implement pbcopy over SSH (yes really!) with this bash one-liner. It uses an escape code called "OSC 52". printf "\033]52;c;%s\007" "$(base64 | tr -d '\n')" panel 6: copy trick 2: syncing the vim clipboard I use vim as a terminal text editor, and I find it's WAY easier if I sync my system clipboard with the vim clipboard like this: set clipboard=unnamed tmux can also copy to your system clipboard.

Download link

https://cdn.masto.host/socialjvnsca/media_attachments/files/114/462/343/580/800/518/original/8c6566d3028dd264.png

Notices where this attachment appears

  1. Embed this notice
    Julia Evans (b0rk@social.jvns.ca)'s status on Wednesday, 07-May-2025 03:40:50 JST Julia Evans Julia Evans

    copy and paste in the terminal

    In conversation about 2 months ago from social.jvns.ca permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.