4 ms·
For pbpaste/pbcopy and xclip? I've considered it and haven't decided how to do it yet given differences in how they work. Do you have one? https://linux.die.ne
by adolph 1y ago
For pbpaste/pbcopy and xclip? I've considered it and haven't decided how to do it yet given differences in how they work. Do you have one?
https://linux.die.net/man/1/xclip https://linux.die.net/man/1/xclip
https://ss64.com/mac/pbcopy.html https://ss64.com/mac/pbcopy.html
https://man.openbsd.org/xclipboard.1 https://man.openbsd.org/xclipboard.1
- procaryote 1y agoI 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!
- hsbauauvhabzb 1y agoI’m honestly not familiar with pbcopy, but I imagine you could make a relatively consistent wrapper in python if a simple alias does not work. Are you able to give some example shell code of what you’d like to be consistent?