youtube.sh 188 B

1234567891011
  1. #!/usr/bin/env bash
  2. if [[ "$1" = "-e" ]]; then
  3. shift
  4. pesquisa="$@"
  5. pesquisa="${pesquisa// /+}"
  6. google-chrome \
  7. https://www.youtube.com/results?search_query="$pesquisa"
  8. fi