Cross-platform dotfiles for Nushell on macOS, Linux and Windows. Tool versions come from mise.
- Prompt and navigation: starship prompt and zoxide (
z <dir>jumps to frequently used directories,zipicks one interactively with fzf). - Completions: carapace completes most CLIs (
git,gh,docker,mise,dotnetand more); fuzzy, case-insensitive matching. - Tool versions:
mise/shell-tools.tomlprovides the shell tools globally, andmise.tomlpins the dev runtimes for this repo. - PATH order: mise tools first, then Homebrew, then everything else, kept that way even when mise or an installer rewrites
PATH. - History: SQLite-backed, 100k entries.
- Aliases and commands:
cls,gp,gam(amend without editing),gpr(pull with rebase).
Nushell and mise. After nu install.nu, run mise install to get the shell tools (starship, zoxide, carapace, fzf). Run it inside this repo to also install the runtimes in mise.toml. Tools that aren't installed are skipped, so the config works without them.
git clone https://github.com/myty/dotfiles
cd dotfiles
nu install.nuinstall.nu is safe to re-run. It:
- Symlinks the repo to
~/.config/dotfiles. Windows needs developer mode or an elevated shell. - Appends
sourcelines to Nushell'senv.nuandconfig.nu, if they're missing. - Symlinks
mise/shell-tools.tomlinto~/.config/mise/conf.d/, which mise merges into its global config so the shell tools work from any directory. - Seeds
~/.nushellrcfromexamples/.nushellrc.example, if it doesn't exist.
Open a new shell afterwards.
Nushell starts in this order, and the order matters:
nushell/env.nugenerates tool init scripts (below), then sources~/.nushellrc.nushell/config.nusets options, then sourcesaliases.nu,commands.nuand an optionallocal.nu.- Nushell's vendor autoload directory loads the generated scripts alphabetically:
carapace,mise,starship,zoxide, thenzz-path-priority.
nushell/autoload.nu writes the generated scripts. It regenerates one only when that tool's binary is newer than the cached script, so shell startup stays fast. The zz- prefix makes the PATH script sort after mise's, so its hook runs last.
| Path | Purpose |
|---|---|
install.nu |
Idempotent installer |
mise/shell-tools.toml |
Shell tools, linked into mise's global conf.d/ |
mise.toml |
Dev runtimes, active only inside this repo |
nushell/env.nu |
Refreshes generated init scripts, sources ~/.nushellrc |
nushell/config.nu |
Shell options; loads aliases, commands and local.nu |
nushell/aliases.nu, commands.nu |
Aliases and custom commands |
nushell/autoload.nu |
Generates and caches init scripts in the vendor autoload dir |
nushell/path-priority.nu |
The PATH ordering logic and its pre_prompt hook |
nushell/nu_scripts |
Submodule of the myty/nu_scripts fork (not loaded by default) |
examples/.nushellrc.example |
Template for ~/.nushellrc |
- Machine-specific environment: edit
~/.nushellrc. It lives outside the repo, andenv.nusources it before everything else. It's the place for$env.EDITOR, tokens and local-only commands. - Machine-specific shell config: create
nushell/local.nu. It's gitignored and loaded last byconfig.nu. - Check PATH order:
$env.PATH | first 10should list mise paths, then Homebrew's.
- CI (
.github/workflows/check.yml): runsinstall.nuon Linux, macOS and Windows, then parse-checks every Nushell file. nu_scriptsfork:sync_nu_scripts_fork.ymlfast-forwardsmyty/nu_scriptsfrom upstream daily. It needs a repository secret,NU_SCRIPTS_FORK_TOKEN: a fine-grained PAT with Contents read/write onmyty/nu_scriptsonly.- Dependabot: bumps the submodule and GitHub Actions versions weekly.