Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,43 @@ settings.cargo.binstall = true
settings.cargo.binstall_only = true
settings.experimental = true

settings.dotfiles.root = "~/dotfiles"
settings.dotfiles.default_mode = "symlink"

[dotfiles]
# ~/.npmrc is intentionally NOT managed here: the real ~/.npmrc holds secret
# authTokens that must never be committed, and the repo .npmrc only sets the
# default registry (which npm uses anyway). Leave the home file untouched.

# List everything explicitly. This is annoying but clear, and avoids bad
# surprises completely.
#
# Manage with:
# $ mise dotfiles apply --dry-run

"~/.config/aerospace" = {}
"~/.config/atuin" = {}
"~/.config/bat" = {}
"~/.config/delta" = {}
"~/.config/fd" = {}
"~/.config/fish" = {}
"~/.config/glow" = {}
"~/.config/husky" = {}
"~/.config/lazygit" = {}
"~/.config/mise" = {}
"~/.config/nvim" = {}
"~/.config/presenterm" = {}
"~/.config/starship.toml" = {}
"~/.config/wezterm" = {}
"~/.config/yazi" = {}
"~/.fdignore" = {}
"~/.gitattributes" = {}
"~/.gitconfig" = {}
"~/.rgignore" = {}
"~/.typos.toml" = {}
"~/.zshrc" = {}
"~/Library/Application Support/org.dystroy.bacon" = {}

# Pick tools that renovate can manage updates for. See:
# https://docs.renovatebot.com/modules/manager/mise/
[tools]
Expand Down
18 changes: 5 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,6 @@ jobs:
with:
persist-credentials: false

- name: Install GNU stow and setup the dotfiles
run: |
sudo apt-get install stow tree
pwd
ls -la
echo "Installing dotfiles to HOME $HOME"
stow --verbose 2 . --target="$HOME"
echo "Installed dotfiles to HOME $HOME"
echo "List files in HOME"
ls -la ~/
echo "List files in ~/.config"
ls -la ~/.config/

- name: Setup the mold linker
uses: rui314/setup-mold@9c9c13bf4c3f1adef0cc596abc155580bcb04444 # v1

Expand Down Expand Up @@ -81,6 +68,11 @@ jobs:
github:dandavison/delta
lazygit@${{ env.LAZYGIT_VERSION }}

- name: Symlink the dotfiles with mise
run: mise dotfiles apply --verbose --yes
env:
MISE_DOTFILES_ROOT: ${{ github.workspace }}

- name: Build
run: cargo install --locked --path scripts/
working-directory: scripts
Expand Down
24 changes: 0 additions & 24 deletions .stow-local-ignore

This file was deleted.

10 changes: 4 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,18 @@ Here are the basics:

### Dotfile management

I manage my dotfiles with GNU Stow. It creates symlinks from the repository to
the home directory. See
[how-i-manage-my-dotfiles-using-gnu-stow](https://dev.to/spacerockmedia/how-i-manage-my-dotfiles-using-gnu-stow-4l59)
for an introduction by Shawn McElroy.
I manage my dotfiles with [mise](https://mise.jdx.dev/). It creates symlinks
from the repository to the home directory.

This way I can keep the configuration under version control and still have it in
the home directory.

```sh
# Sync the dotfiles (practice run)
stow --verbose 2 . --simulate
mise dotfiles apply --dry-run

# Really sync the dotfiles
stow --verbose 2 .
mise dotfiles apply
```

### Dependency management
Expand Down
Loading