~sircmpwn/dotfiles

ref: c4c745eb37ad80bf497c10fbf748241a49b19394 dotfiles/bin/xdg-open -rwxr-xr-x 188 bytes
c4c745ebDrew DeVault bin/lineno: simplify script 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
case "${1%%:*}" in
	http|https)
		exec qutebrowser "$1"
		;;
	*.pdf)
		exec zathura "$1"
		;;
	mailto)
		exec aerc "$1"
		;;
	*)
		echo "Don't know how to open $@" >&2
		;;
esac