hey rifle handles image urls the right way
This commit is contained in:
parent
9511d1942b
commit
13aef30648
2 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,2 @@
|
|||
#!/bin/bash
|
||||
curl -IL $1 \
|
||||
| grep Content-Type \
|
||||
| tail -n 1 \
|
||||
| grep image && feh $1 || xdg-open $1
|
||||
rifle "$1" | grep 'cannot open' && xdg-open "$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue