summary refs log tree commit diff
path: root/home/.local/bin/open
blob: 9439f07d81b817dbc75f9b3e9a1cbe4b13d4e307 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -eu

if [ -n "${SSH_CLIENT:-}" ]; then
	exec pbd -o "$@"
fi

case "$1" in
	(*.gif|*.jpeg|*.jpg|*.png)
		curl -LSs "$1" | imv -
		;;
	(https://youtu.be/*|https://www.youtube.com/watch*|https://twitch.tv/*)
		ulimit -c 0 # mpv segfaults on exit every time on OpenBSD...
		exec mpv "$1" >/dev/null 2>&1
		;;
	(*)
		exec firefox -new-tab "$1" >/dev/null 2>&1
		;;
esac
/commit/bin/order.y?id=43730738b397cf1a501dde5d9aad0da0215d9fc7&follow=1'>Support simple assignment in orderJune McEnroe 2019-05-15Implement sizeof in orderJune McEnroe 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe 2019-05-10Use val instead of suboptargJune McEnroe 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe