aboutsummaryrefslogtreecommitdiffstats
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/init.sh b/init.sh
new file mode 100755
index 0000000..28693fc
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+set -o errexit
+set -o nounset
+
+SCRIPT_DIR="$(realpath "$(dirname "$0")")"
+
+main() {
+ "$SCRIPT_DIR/scripts/link.sh"
+ "$SCRIPT_DIR/scripts/vim.sh"
+
+ if [ "$(uname)" = 'Darwin' ]; then
+ (cd "$SCRIPT_DIR/macos" && brew bundle)
+ if echo "$SHELL" | grep -qv oksh; then
+ "$SCRIPT_DIR/macos/shell.sh"
+ fi
+ fi
+}
+
+main "$@"