Skip to content

Instantly share code, notes, and snippets.

@aarnone
Created May 14, 2018 21:06
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save aarnone/83ce3b053ace037ada850d13133317f2 to your computer and use it in GitHub Desktop.
Save aarnone/83ce3b053ace037ada850d13133317f2 to your computer and use it in GitHub Desktop.
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

$> pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
@icq4ever
Copy link

thanks a lot!

@NotAShelf
Copy link

NotAShelf commented Jun 23, 2021

for those looking at this in 2021 and trying to figure out a way to make those aliases permanent, I've made slight adjustments.

Unfortunately I can't make a pull request on gists, but you may find the adjusted gist here unless the author of this gist wants to add it to theirs.

(Includes details for bash and zsh, feel free to add more)

@Aur0nd
Copy link

Aur0nd commented Nov 18, 2021

Good stuff man thank you!

@woodenfurniture
Copy link

thanks

@ImSeenOne
Copy link

I guess it is pamac install xsel and not pacman install xsel (at least that you have the binaries in .tar.gz)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment