File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
33
4+ MISE_DIR=" ${XDG_CONFIG_HOME} /mise"
5+ trap ' unset ZSH_BIN USER_SHELL MISE_DIR' EXIT
6+
47# Install Zsh
58echo " Installing Zsh..."
69sudo apt-get update
@@ -22,4 +25,7 @@ if [ -f "${HOME}/.zshenv" ]; then
2225 echo " Warning: existing .zshenv found, backed up to .zshenv.bk"
2326fi
2427ln -sf .dotfiles/zsh/.zshenv " ${HOME} /.zshenv"
25- stow --no-folding --target " ${XDG_CONFIG_HOME} /mise" ' mise'
28+
29+ # Install mise dotfiles
30+ mkdir -p " ${MISE_DIR} "
31+ stow --no-folding --target " ${MISE_DIR} " ' mise'
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ set -euo pipefail
33
44ZSH_BIN=" ${HOMEBREW_PREFIX} /bin/zsh" # Homebrew zsh
55USER_SHELL=$( dscl . -read " ${HOME} " UserShell | awk ' {print $2}' )
6- trap ' unset ZSH_BIN USER_SHELL' EXIT
6+ MISE_DIR=" ${XDG_CONFIG_HOME} /mise"
7+ trap ' unset ZSH_BIN USER_SHELL MISE_DIR' EXIT
78
89# Skip if running in CI
910if [ -n " ${CI:- } " ]; then
2728echo " Installing zsh dotfiles..."
2829mkdir -p " ${HOME} /.config" # Make sure XDG_CONFIG_HOME exists
2930ln -sf .dotfiles/zsh/.zshenv " ${HOME} /.zshenv"
30- stow --no-folding --target " ${XDG_CONFIG_HOME} /mise" ' mise'
31+
32+ # Install mise dotfiles
33+ mkdir -p " ${MISE_DIR} "
34+ stow --no-folding --target " ${MISE_DIR} " ' mise'
You can’t perform that action at this time.
0 commit comments