First you need the 'xsel' package.
$> pacman -S xsel
Then create aliases.
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
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)
Good stuff man thank you!
thanks
I guess it is pamac install xsel
and not pacman install xsel
(at least that you have the binaries in .tar.gz)
I guess it is
pamac install xsel
and notpacman install xsel
(at least that you have the binaries in .tar.gz)
no it's pacman -s xsel
https://wiki.archlinux.org/title/pacman
https://www.reddit.com/r/ManjaroLinux/comments/jil8ef/whats_the_difference_between_pamac_and_pacman/
thanks a lot!