diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-12-05 12:20:21 -0800 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-12-05 12:20:21 -0800 |
| commit | 51d75025db8b04a3c1b0636b2e1c96cda0d8137e (patch) | |
| tree | 37e14d11a6e6376d075e63031c3ec89634f07bc6 /init.sh | |
| parent | Remove symlink first before re-linking (diff) | |
| download | dotfiles-51d75025db8b04a3c1b0636b2e1c96cda0d8137e.zip | |
Add init script
Diffstat (limited to '')
| -rwxr-xr-x | init.sh | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -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 "$@" |