Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- if [ -t 0 -a $# -gt 0 ]; then
- termux-clipboard-set "$@"
- echo "$@"
- elif [ -t 0 ]; then
- termux-clipboard-get
- else
- p=`cat`
- echo "$p" | termux-clipboard-set
- echo "$p"
- fi
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement