~sircmpwn/dotfiles

ref: 3cc5162c166dcf55dde0abc863f9fdc1fd7ae595 dotfiles/bin/xdg-open -rwxr-xr-x 184 bytes
3cc5162cDrew DeVault bin/xdg-open: set browser to firefox 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 firefox "$1"
		;;
	*.pdf)
		exec zathura "$1"
		;;
	mailto)
		exec aerc "$1"
		;;
	*)
		echo "Don't know how to open $@" >&2
		;;
esac