summary refs log tree commit diff
path: root/install.sh
blob: 6051edafecd1b24fae6e322c3ebd5dc92ad6947c (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
#!/bin/sh
set -eu

packages='curl htop neovim sl the_silver_searcher tree'

FreeBSD() {
	sudo pkg install ddate $packages
}

OpenBSD() {
	doas pkg_add $packages
}

Linux() {
	sudo pacman -Sy --needed bc ctags gdb openbssh $packages
}

installMacPorts() {
	xcode-select --install
	xcodebuild -license
	dir=MacPorts-2.6.3
	tar=${dir}.tar.bz2
	curl -O "https://distfiles.macports.org/MacPorts/${tar}"
	tar -x -f $tar
	(cd $dir && ./configure)
	make -C $dir
	sudo make -C $dir install
	rm -fr $tar $dir
}

Darwin() {
	[ -d /opt/local ] || installMacPorts
	sudo /opt/local/bin/port selfupdate
	sudo /opt/local/bin/port -N install git mandoc pkgconfig $packages
	sudo mkdir -p /opt/local/etc/select/man
	printf 'bin/man\nshare/man/man1/man.1\nshare/man/man1/man.1.gz\n' \
		| sudo tee /opt/local/etc/select/man/base >/dev/null
	printf '/usr/bin/man\n/usr/share/man/man1/man.1\n-\n' \
		| sudo tee /opt/local/etc/select/man/system >/dev/null
	sudo port select --set man system
}

$(uname)
he files for real, but it's a conservative guess and should do the right thing in most cases. 2022-03-12Reset to vi insert mode on enterJune McEnroe 2022-03-12Implement basic esc/i mode switchingJune McEnroe 2022-03-12Separate emacs key bindingsJune McEnroe 2022-03-09Always refresh the screen with ^LChristian Kellermann This patch adds an explicit wrefresh call. Under some conditions just flagging the window for redraw does not trigger a redraw and the user has no other means to force redrawing of a window. Without this patch resizing the window would sometimes result in an empty chat window with no way to redraw it. Tested under uxterm and st on OpenBSD. 2022-03-05Update STANDARDS section authors, titles and URLsJune McEnroe 2022-03-02Show own nick on /nick without paramsJune McEnroe 2022-02-26Specify commands which depend on capsJune McEnroe Currently only /setname. 2022-02-26Only add available commands to completeJune McEnroe 2022-02-26Factor out commandAvailableJune McEnroe 2022-02-23Give examples of "general events" 2.1June McEnroe 2022-02-23Add missing unistd.h include in input.cJune McEnroe 2022-02-22Document the interfaceJune McEnroe 2022-02-20Clean up unimplemented editing mode stuffJune McEnroe 2022-02-20Save input buffer contentsJune McEnroe 2022-02-20Share a cut buffer between all edit buffersJune McEnroe 2022-02-20Assert return values in edit testsJune McEnroe 2022-02-20Move mbs out of struct Edit, use a global bufferJune McEnroe This saves 4K in the edit buffers, not to mention all the heap allocations for the separate mbs buffers! There might be a way to be more clever about capacities, but I don't think it's worth it. 2022-02-20Clear edit buffer before running commandJune McEnroe Otherwise a command that switches windows will update the status line while the edit buffer still has input "pending", showing an indicator. 2022-02-20Show indicator in status when window has pending inputJune McEnroe 2022-02-20Use separate edit buffers for each IDJune McEnroe 2022-02-20Make sure new cap is actually larger than new lengthJune McEnroe 2022-02-20Remove unused mbs.len field from struct EditJune McEnroe 2022-02-19Remove unneeded includes in ui.cJune McEnroe 2022-02-19Reimplement tab completeJune McEnroe 2022-02-19Handle errors from editFn, etc.June McEnroe 2022-02-19Reimplement text macrosJune McEnroe 2022-02-19Factor out input handling to input.cJune McEnroe 2022-02-19Factor out window management to window.cJune McEnroe 2022-02-19Enable -Wmissing-prototypesJune McEnroe In other words, warn when a function is missing static. I don't see why this isn't in -Wextra. 2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe 2022-02-19Run line editing testsJune McEnroe I know, it feels wrong. 2022-02-18Implement new line editing "library"June McEnroe Losing tab complete and text macros, for now. This new implementation works on an instance of a struct and does not interact with the rest of catgirl, making it possible to copy into another project. Unlike existing line editing libraries, this one is entirely abstract and can be rendered externally. My goal with this library is to be able to implement vi mode. Since it operates on struct instances rather than globals, it might also be possible to give catgirl separate line editing buffers for each window, which would be a nice UX improvement. 2022-02-18Simplify cursor positioning in inputJune McEnroe Do some extra work by adding the portion before the cursor to the input window twice, but simplify the interaction with the split point. This fixes the awkward behaviour when moving the cursor across colour codes where the code would be partially interpreted up to the cursor. 2022-02-18Fix M-f orderingJune McEnroe 2022-02-12Move sandman build to scripts/MakefileJune McEnroe 2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe 2022-02-12Copy RPP defines from oconfigureJune McEnroe