Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. if [ -t 0 -a $# -gt 0 ]; then
  3. termux-clipboard-set "$@"
  4. echo "$@"
  5. elif [ -t 0 ]; then
  6. termux-clipboard-get
  7. else
  8. p=`cat`
  9. echo "$p" | termux-clipboard-set
  10. echo "$p"
  11. fi
  12. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement