replace webman with mise

This commit is contained in:
2025-06-13 16:28:38 -06:00
parent 9ff02b60e7
commit 749b57966d
8 changed files with 47 additions and 65 deletions

View File

@@ -7,6 +7,9 @@ packages:
- direnv - direnv
casks: casks:
- git-credential-manager - git-credential-manager
- ghostty
- orbstack
- raycast
linux: linux:
dnfs: dnfs:
- git-all - git-all
@@ -26,13 +29,25 @@ packages:
- bash - bash
- fish - fish
- direnv - direnv
webman: mise:
pkgs: - jj
- bat - lsd
- lsd - fzf
- fzf - zellij
- zellij - neovim
- nvim - delta
- jj - bat
groups: - fd
- modern-unix - rg
- hyperfine
- yazi
- jq
- btop
- bottom
- uv
- dust
- glow
- lazygit
- lazydocker
- zoxide

View File

@@ -5,7 +5,7 @@ RUN apt-get update && \
apt update && \ apt update && \
apt install -y git curl fish sudo && \ apt install -y git curl fish sudo && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN sh -c "$(curl -fsLS get.chezmoi.io)" RUN sh -c "$(curl -fsLS get.chezmoi.io/lb)"
COPY . /root/.local/share/chezmoi/ COPY . /root/.local/share/chezmoi/
RUN chezmoi init --apply RUN chezmoi init --apply

View File

@@ -10,9 +10,12 @@ These dotfiles are managed using [chezmoi](https://www.chezmoi.io/).
If you'd like to use these files long-term, fork this project to manage your own configuration. Then: If you'd like to use these files long-term, fork this project to manage your own configuration. Then:
- Change the `email` and `name` in `.chezmoi.toml.tmpl` to your own info. - Change the `email` and `name` in `.chezmoi.toml.tmpl` to your own info.
- Install with `sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply <YOUR_USERNAME> && fish` - Install with `sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- -b $HOME/.local/bin init --apply <YOUR_USERNAME> && fish`
Personally, I run `sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14 && fish` Personally, I run
```bash
sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- -b $HOME/.local/bin init --apply candrewlee14 && fish
```
## Information ## Information
@@ -27,9 +30,7 @@ Here are a few of the primary tools installed here:
- **Post-Install**: run `tide configure` to change the appearance of the prompt - **Post-Install**: run `tide configure` to change the appearance of the prompt
- [atuin](https://github.com/atuinsh/atuin) - helpful shell history - [atuin](https://github.com/atuinsh/atuin) - helpful shell history
- by default, it rebinds `ctrl+r` and `up` to use `atuin` - by default, it rebinds `ctrl+r` and `up` to use `atuin`
- [webman](https://github.com/candrewlee14/webman) - cross-platform binary package manager - [mise](https://mise.jdx.dev) - a polyglot tool version manager
- run `webman upgrade nvim` to upgrade to the latest `nvim`, for example
- run `webman switch node` to use other versions of packages
- [nvim](https://github.com/neovim/neovim) - a better vim-fork - [nvim](https://github.com/neovim/neovim) - a better vim-fork
- we use [AstroNvim](https://astronvim.com/) to get an IDE-like terminal editor experience - we use [AstroNvim](https://astronvim.com/) to get an IDE-like terminal editor experience
- [zellij](https://github.com/zellij-org/zellij) - a modern `tmux` replacement - [zellij](https://github.com/zellij-org/zellij) - a modern `tmux` replacement

View File

@@ -10,6 +10,13 @@ if status is-interactive
direnv hook fish | source direnv hook fish | source
end end
if type -q mise
mise activate fish | source
end
alias ls="lsd"
set -gx EDITOR nvim
if test -f ~/.config/fish/config.fish.local if test -f ~/.config/fish/config.fish.local
source ~/.config/fish/config.fish.local source ~/.config/fish/config.fish.local
end end
@@ -18,9 +25,4 @@ if status is-interactive
end end
end end
alias ls="lsd"
fish_add_path $HOME/.webman/bin
set -gx EDITOR nvim

View File

@@ -9,7 +9,7 @@ if not functions -q fisher
end end
end end
fish_add_path ~/.webman/bin/ fish_add_path ~/.local/bin/
set -gx --path XDG_DATA_DIRS $XDG_DATA_DIRS:$HOME/.local/share/ set -gx --path XDG_DATA_DIRS $XDG_DATA_DIRS:$HOME/.local/share/
# if atuin is not installed, install it # if atuin is not installed, install it

View File

@@ -57,26 +57,5 @@ else
chsh -s $(which fish) || echo "chsh failed" chsh -s $(which fish) || echo "chsh failed"
fi fi
if test -x ~/.webman/bin/nvim; then
echo "nvim already installed"
else
echo "\n[-] Installing nvim [-]"
~/.webman/bin/webman add nvim
fi
echo "\n[-] Running fish install setup [-]" echo "\n[-] Running fish install setup [-]"
/usr/bin/env fish ~/.config/fish/.on_install.fish /usr/bin/env fish ~/.config/fish/.on_install.fish
if test -f ~/.config/nvim/README.md ; then
echo "Already installed AstroNvim"
else
echo "\n[-] Installing AstroNvim [-]"
if test -x ~/.webman/bin/nvim ; then
~/.webman/bin/nvim --headless +q
else
echo "~/.webman/bin/nvim does not exist or is not executable"
fi
fi

View File

@@ -42,9 +42,9 @@ fi
{{- end }} {{- end }}
echo "\n[-] Installing webman [-]" echo "\n[-] Installing mise [-]"
if test -x ~/.webman/bin/webman; then if test -x ~/.local/bin/mise; then
echo "webman already installed" echo "mise already installed"
else else
curl https://raw.githubusercontent.com/candrewlee14/webman/main/scripts/install.sh | sh curl https://mise.run | sh
fi fi

View File

@@ -35,22 +35,7 @@ echo "[-] Updating casks [-]"
{{ end -}} {{ end -}}
{{ end -}} {{ end -}}
echo "[-] Updating Webman groups [-]" echo "[-] Updating Mise tools [-]"
{{ range .packages.mise -}}
if test -x ~/.webman/bin/webman; then ~/.local/bin/mise use --global {{ . | quote }}
echo "webman already installed"
else
echo "\n[-] Installing webman [-]"
curl https://raw.githubusercontent.com/candrewlee14/webman/main/scripts/install.sh | sh
fi
~/.webman/bin/webman upgrade webman
{{ range .packages.webman.groups -}}
~/.webman/bin/webman group upgrade {{ . | quote }} -a
{{ end -}}
echo "[-] Updating Webman packages [-]"
{{ range .packages.webman.pkgs -}}
~/.webman/bin/webman upgrade {{ . | quote }}
{{ end -}} {{ end -}}