urxvt - open urls smarter

This commit is contained in:
Felix Van der Jeugt 2015-01-10 10:31:29 +01:00
parent 14b52791ec
commit 3171048232
2 changed files with 6 additions and 1 deletions

5
local/bin/open.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
curl -IL $1 \
| grep Content-Type \
| tail -n 1 \
| grep image && feh $1 || firefox $1