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 | |
| parent | Remove symlink first before re-linking (diff) | |
| download | dotfiles-51d75025db8b04a3c1b0636b2e1c96cda0d8137e.zip | |
Add init script
Diffstat (limited to '')
| -rw-r--r-- | .link-ignore | 3 | ||||
| -rw-r--r-- | README.md | 8 | ||||
| -rwxr-xr-x | init.sh | 19 | ||||
| -rwxr-xr-x | scripts/link.sh (renamed from link.sh) | 0 | ||||
| -rwxr-xr-x | scripts/vim.sh (renamed from vim.sh) | 0 |
5 files changed, 21 insertions, 9 deletions
diff --git a/.link-ignore b/.link-ignore index f590d4e..0d12f1a 100644 --- a/.link-ignore +++ b/.link-ignore @@ -2,8 +2,7 @@ .gitignore .link-ignore LICENSE -link.sh +init.sh macos README.md scripts -*.swp @@ -9,11 +9,5 @@ devices in sync. ```sh git clone git://git.eugenetriguba.com/dotfiles ~/.dotfiles cd .dotfiles -./link.sh +./init.sh ``` - -Additionally: - -- To setup system packages on macOS via homebrew, run `brew bundle` in `macos/`. -- To setup `oksh` as the shell on macOS, run `./macos/shell.sh` -- To clone down all my personal git repositories, run `./scripts/git-repos.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 "$@" diff --git a/link.sh b/scripts/link.sh index 131f9d0..131f9d0 100755 --- a/link.sh +++ b/scripts/link.sh |