Closed chapmanjacobd closed 1 year ago
Hm, I think Termux is mostly used for Android? I'm unsure if I've used it before and don't understand the example usage here or what language it is. The readme suggests an approach that only relies on PATH and should work with any terminal.
okay I tried it out
/data/data/com.termux/files/home/bin/cb: 14: XDG_SESSION_TYPE: parameter not set
it looks like termux provides an xclip but it's just a shell script with an incomplete API. I think calling termux-clipboard-get/set directly would be better.
is_android() { [ -n "$TERMUX_VERSION" ]; }
elif is_android; then
alias cbcopy=termux-clipboard-set
alias cbpaste=termux-clipboard-get
these changes allow it to work. I'm sure Android is pretty low priority so I'll close this issue but if you want to make the change feel free or if you want me to open a PR I can do that
termux-clipboard-get termux-clipboard-set
example usage