News for hackers. Stuff that matters.
Re:Termux is an Android terminal emulator and Linux environm... by bklaasen on Wednesday November 04, 2020 @04:03PM (#24993046)
Here's my termux-url-opener:

$ cat ~/bin/termux-url-opener #!/data/data/com.termux/files/usr/bin/env bash

read -ep "[c]ast or [d]ownload: " -i "c" choice case "${choice}" in c|C) catt cast "${1}" ;; d|D) pip install --upgrade youtube-dl cd ~/storage/movies youtube-dl "${1}" ;; *) echo "Sorry, that's invalid." exit 65 ;; esac

There are no comments on this comment yet.