my dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

10 lines
280 B

  1. if [ "$#" -ne 1 ]; then
  2. echo "please provide a url" >&2
  3. exit 1
  4. fi
  5. case "$1" in
  6. *youtube.com/*|*youtu.be/*) /data/data/com.termux/files/home/.local/bin/catt add "$1" ;;
  7. *) /data/data/com.termux/files/home/.local/bin/catt cast "$1" ;;
  8. esac