First you need the 'xsel' package.
pacman -S xsel
Then create aliases.
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
If you would like to make your aliases permanent, you need to add them to ~/.bashrc
For Bash:
nano ~/.bashrc
and paste
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
For ZSH:
nano .zshrc
and paste
alias pbcopy='xsel --clipboard --input'
alias pbpaste='xsel --clipboard --output'
Thank you, this was helpful!