Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 520 Bytes

File metadata and controls

29 lines (19 loc) · 520 Bytes

CLIPBOARD

Examples of using clipboard in the shell

Both Mac and Windows come with cmd tooling to help with copying to the clipboard.

MacOS

pbcopy

pbpaste

Windows

# you need to quote !! after it expands
echo !! | clipcopy

# to paste
clippaste
# or to execute
$(clippaste)

Resources

  • Window subsytem for linux (WSL) copy to clipboard from the command line? here