configuration/local/bin/open.sh

6 lines
112 B
Bash
Raw Normal View History

2015-01-10 10:31:29 +01:00
#!/bin/bash
curl -IL $1 \
| grep Content-Type \
| tail -n 1 \
2015-06-04 20:59:35 +02:00
| grep image && feh $1 || xdg-open $1