aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/imgurl
blob: f9cad49d0359b45a80ca79a37a11f7f0c9e69c2c (plain)
1
2
3
4
5
6
#!/bin/sh

[ -z "$1" ] && exit

setsid curl -sL "$1" > "/tmp/$(echo "$1" | sed "s/.*\///")" && nsxiv -a "/tmp/$(echo "$1" | sed "s/.*\///")"  >/dev/null 2>&1 &