3 ms·
I do if ! which pbcopy &> /dev/null; then alias pbcopy="xclip -selection clipboard" alias pbpaste="xclip -o -selection clipboard" fi T
by procaryote 1y ago
I do
if ! which pbcopy &> /dev/null; then
alias pbcopy="xclip -selection clipboard"
alias pbpaste="xclip -o -selection clipboard"
fi
The `if` bit is so it only adds the alias if there isn't a `pbcopy`, so I can use the same dotfile on mac and linux
- adolph 1y agoThank you!