Skip to content

Instantly share code, notes, and snippets.

View cesarolea's full-sized avatar

César Olea cesarolea

View GitHub Profile
cesarolea / choosy
Created February 7, 2020 22:42
Open browser based off of certain rules (like choosy for macOS)
DOMAIN=$(echo "$URL" | awk -F[/:] '{print $4}')
## Domain starts with
if [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-start.txt)\)$) ]]; then
chromium-browser "$URL" & disown
elif [[ $DOMAIN =~ $(echo ^\($(paste -sd'|' /home/your-user/.config/url-is.txt)\)$) ]]; then
firefox "$URL" & disown
cesarolea /
Created August 4, 2016 18:38

Keybase proof

I hereby claim:

  • I am cesarolea on github.
  • I am cesarolea ( on keybase.
  • I have a public key whose fingerprint is DFB5 1BAF 464E ED9D 6B39 7E63 2A6A A95D 208C 4CD7

To claim this, I am signing this object: