Skip to content

Commit

Permalink
Commit to using mise in WSL
Browse files Browse the repository at this point in the history
Issue: #81
  • Loading branch information
scottmuc committed Oct 20, 2024
1 parent f91259f commit e6385a8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/pippin-repaving-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ the [previous repave issues][repave-history]. Have fun!
- [ ] Ensure a working ansible enviroment <details>
<summary>Instructions</summary>

This will exercise the `asdf` setup.
This will exercise the `mise` setup.
</details>

- [ ] Turn on the PI and note the IP obtained from the Router
Expand Down
9 changes: 1 addition & 8 deletions .github/ISSUE_TEMPLATE/wsl-repaving-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,8 @@ all the [previous repave issues][repave-history]. Have fun!
<summary>Instructions</summary>

```
asdf plugin add python
asdf plugin add opentofu
asdf plugin add gum
asdf plugin add shellcheck
asdf plugin add nodejs
asdf plugin add ruby
asdf install
mise install
pip install ansible
(cd ~/ && asdf install)
```


Expand Down
3 changes: 2 additions & 1 deletion homedirs/common/dotfiles/dot.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export PATH="/usr/local/go/bin:$PATH"
#
# I want something in my PATH because some of my neovim plugins require
# things like python/node/ruby available in the PATH to work.
export PATH="$HOME/.local/share/mise/shims:$PATH"
# export PATH="$HOME/.local/share/mise/shims:$PATH"
eval "$(mise activate zsh)"

# need this set to xterm-256color to get proper color support in vim
export TERM='xterm-256color'
Expand Down
20 changes: 15 additions & 5 deletions homedirs/wsl/coalesce_this_machine
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ main() {
install_os_packages
default_to_zsh
setup_ssh_dir
install_asdf
install_mise
install_nvim
install_golang "1.22.3"
install_python_dependencies
Expand All @@ -23,13 +23,23 @@ main() {
}


install_asdf() {
if command -v asdf >/dev/null; then
echo "asdf exists: $(asdf --version)"
install_mise() {
if command -v mise &> /dev/null; then
echo "mise exists: $(mise --version)"
return
fi

git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.11.1
local keyring_path="/usr/share/keyrings/mise.gpg"
curl -fsSL https://mise.jdx.dev/gpg-key.pub \
| sudo gpg --dearmor -o "${keyring_path}"
sudo chmod a+r "${keyring_path}"

echo \
deb [arch="$(dpkg --print-architecture)" signed-by="${keyring_path}"] \
https://mise.jdx.dev/deb stable main | sudo tee /etc/apt/sources.list.d/mise.list > /dev/null

sudo apt update
sudo apt install mise -y
}


Expand Down

0 comments on commit e6385a8

Please sign in to comment.