Skip to content

Commit 26f30e3

Browse files
committed
✨ feat: Add mise config
1 parent 5b75f85 commit 26f30e3

3 files changed

Lines changed: 28 additions & 4 deletions

File tree

mise/config.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[tools]
2+
"node" = "lts"
3+
"npm:@anthropic-ai/claude-code" = "latest"
4+
"npm:@google/gemini-cli" = "latest"
5+
"npm:@trivago/prettier-plugin-sort-imports" = "latest"
6+
"npm:npm-run-all" = "latest"
7+
"npm:prettier-plugin-sort-json" = "latest"
8+
"npm:prettier-plugin-sql" = "latest"
9+
"npm:prettier-plugin-tailwindcss" = "latest"
10+
"npm:prettier" = "latest"
11+
"npm:serve" = "latest"
12+
"pipx:ansible-lint" = { version = "latest", pipx_args = "--include-deps" }
13+
"pipx:ansible" = { version = "latest", pipx_args = "--include-deps" }
14+
"pipx:black" = "latest"
15+
"pipx:pipdeptree" = "latest"
16+
"pipx:poetry" = "latest"
17+
"pipx:pre-commit" = "latest"
18+
"pnpm" = "10"
19+
"python" = "latest"
20+
"usage" = "latest"
21+
"yarn" = "4"
22+
"pipx:ruff" = "latest"
23+
go = "latest"

scripts/debian-zsh.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ bash -c "NO_EDIT=true NO_TUTORIAL=true ZINIT_HOME=${HOME}/.local/share ZINIT_REP
1212

1313
# Change default shell to zsh
1414
echo "Changing default shell to zsh..."
15-
sudo chsh -s "$(which zsh)" "$(whoami)"
15+
sudo chsh -s "$(which zsh)" "${USER}"
1616

1717
# Install zsh dotfiles
1818
echo "Installing zsh dotfiles..."
@@ -22,3 +22,4 @@ if [ -f "${HOME}/.zshenv" ]; then
2222
echo "Warning: existing .zshenv found, backed up to .zshenv.bk"
2323
fi
2424
ln -sf .dotfiles/zsh/.zshenv "${HOME}/.zshenv"
25+
stow --no-folding --target "${XDG_CONFIG_HOME}/mise" 'mise'

scripts/macos-zsh.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -euo pipefail
33

44
ZSH_BIN="${HOMEBREW_PREFIX}/bin/zsh" # Homebrew zsh
55
USER_SHELL=$(dscl . -read "${HOME}" UserShell | awk '{print $2}')
6+
trap 'unset ZSH_BIN USER_SHELL' EXIT
67

78
# Skip if running in CI
89
if [ -n "${CI:-}" ]; then
@@ -25,6 +26,5 @@ fi
2526
# Install zsh dotfiles
2627
echo "Installing zsh dotfiles..."
2728
mkdir -p "${HOME}/.config" # Make sure XDG_CONFIG_HOME exists
28-
ln -s .dotfiles/zsh/.zshenv "${HOME}/.zshenv"
29-
30-
unset ZSH_BIN USER_SHELL
29+
ln -sf .dotfiles/zsh/.zshenv "${HOME}/.zshenv"
30+
stow --no-folding --target "${XDG_CONFIG_HOME}/mise" 'mise'

0 commit comments

Comments
 (0)