summary refs log tree commit diff
path: root/install.sh
blob: 55e071faa278fa0d1ceedc6e3accd3303ff2b6fc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/sh
set -eu

pkgAny='curl htop sl the_silver_searcher tree'
pkgDarwin="${pkgAny}"
pkgFreeBSD="${pkgAny} ddate neovim"
pkgLinux="${pkgAny} bc ctags gdb neovim openssh"
pkgNetBSD="${pkgAny} vim"
pkgOpenBSD="${pkgAny} neovim"

pkgsrcTag='20171103'
neovimTag='v0.4.3'
Darwin() {
	xcode-select --install || true
	if [ ! -d /opt/pkg ]; then
		tar="bootstrap-trunk-x86_64-${pkgsrcTag}.tar.gz"
		url="https://pkgsrc.joyent.com/packages/Darwin/bootstrap/${tar}"
		curl -O "$url"
		sudo tar -pxz -f "$tar" -C /
		rm "$tar"
	fi
	sudo pkgin update
	sudo pkgin install $pkgDarwin
	sudo ln -fs /opt/pkg/bin/gpg2 /usr/local/bin/gpg
	if [ ! -f /usr/local/bin/nvim ]; then
		tar='nvim-macos.tar.gz'
		base='https://github.com/neovim/neovim/releases/download'
		url="${base}/${neovimTag}/${tar}"
		curl -L -O "$url"
		sudo tar -x -f "$tar" -C /usr/local --strip-components 1
		rm "$tar"
	fi
}

FreeBSD() {
	pkg install $pkgFreeBSD
}

Linux() {
	pacman -Sy --needed $pkgLinux
}

NetBSD() {
	if [ ! -f /usr/pkg/bin/pkgin ]; then
		base="ftp://ftp.NetBSD.org/pub/pkgsrc/packages"
		export PKG_PATH="${base}/$(uname -s)/$(uname -p)/$(uname -r)/All"
		pkg_add pkgin
		echo "$PKG_PATH" > /usr/pkg/etc/pkgin/repositories.conf
	fi
	pkgin update
	pkgin install $pkgNetBSD
}

OpenBSD() {
	pkg_add $pkgOpenBSD
}

$(uname)
McEnroe 2022-07-08Remove TOURJune McEnroe 2022-07-03Add The Bone Shard EmperorJune McEnroe 2022-06-25Bump xterm font size to 12June McEnroe 2022-06-10Handle subshells (and functions) inside substitutionsJune McEnroe 2022-06-10Switch to jorts Install scriptJune McEnroe 2022-06-08Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe=d5d5aed9442b8d883a257b73b2e0cced6c29576a&follow=1'>Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe Weirdly the Fn key doesn't change how the F row registers... I wonder if I can do something about that. 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 11 is what I use on macOS, but I feel like my eyes are working harder here. 2021-02-07Fully configure and rebind cwmJune McEnroe This is sort of a mix of trying to emulate macOS somewhat for my muscle memory and just rebinding some of the cwm defaults to use 4- rather than M-. 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe cwm still needs a lot more rebinding, and I need to actually look at its other options. xterm definitely still needs some configuration, but I at least managed to get it to use a decent looking font. Very happy that OpenBSD includes Luxi Mono, which is what my usual font, Go Mono, is based on anyway. Still missing is xmodmap and such. 2021-02-06Add xterm output to schemeJune McEnroe