Update 1 file: bootstrap.sh
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# If piped, download and run as file so exec works
|
||||
if [[ ! -t 0 && -z "$_BOOTSTRAP_FILE" ]]; then
|
||||
TMP=$(mktemp /tmp/bootstrap.XXXXXX.sh)
|
||||
curl -fsSL https://git.jeremymcclure.com/jeremy/dotstate-storage/raw/branch/master/default/.config/zsh/bootstrap.sh -o "$TMP"
|
||||
chmod +x "$TMP"
|
||||
_BOOTSTRAP_FILE=1 exec "$TMP"
|
||||
fi
|
||||
|
||||
# --- Helpers ---
|
||||
|
||||
info() { printf "\033[1;34m%s\033[0m\n" "$*"; }
|
||||
@@ -23,9 +15,7 @@ update() {
|
||||
dotstate doctor --fix || true
|
||||
dotstate activate || true
|
||||
|
||||
info "done — restarting shell"
|
||||
exec zsh -i < /dev/tty
|
||||
|
||||
info "done"
|
||||
}
|
||||
|
||||
arch() {
|
||||
|
||||
Reference in New Issue
Block a user