A native Nushell profile for Windows, macOS and Linux. Experimental replacement for Bluzzi/powershell-profile.
- 📂 Jump to visited directories with
z, inspired by zoxide: typezalone to pick one in a list. - 🌿 Git status in the prompt: branch, sync state and pending changes.
- 💡 Tab completion for Git, GitHub CLI, Pnpm, Docker and winget.
- ⌨️ Windows-style editing shortcuts.
- 🔄 Update Nushell and the profile with
update-profile. - 📖 Discover all the available commands with
my-commands.
| Type or press | Effect |
|---|---|
.., ... |
Go up one or two directories, without cd. |
./src |
Enter a directory, without cd. |
cd - |
Go back to the previous directory. |
z app |
Jump to the best visited directory matching app. |
z |
Choose a visited directory in a list. |
cd |
Go to the home directory. |
| Ctrl+R | Search the history: type a few letters, even apart (gco finds git checkout), then Enter. |
| ↑ | Recall the previous commands starting with what is typed. |
| → | Accept the suggestion shown in grey. |
| Tab | Complete a command, an option or a path. |
| Ctrl+L | Clear the screen. |
| F1 | Search the help menu. |
One command installs the profile, along with Git and Nushell only if they are missing.
Important
A Git or Nushell already on your PATH is left as it is: not reinstalled, not updated, not reconfigured, however you installed it. The profile requires Nushell 0.117+, so an older one has to be updated first.
macOS and Linux:
curl -fsSL https://raw.githubusercontent.com/Bluzzi/nushell-profile/main/install/install.sh | shWindows, in PowerShell:
irm https://raw.githubusercontent.com/Bluzzi/nushell-profile/main/install/install.ps1 | iexThen open a new terminal and run nu.
- A missing Git comes from winget on Windows, from Homebrew or Apple's developer tools on macOS, and from the distribution's package manager on Linux.
- A missing Nushell comes from winget on Windows, from Homebrew when it is there, and else from its latest release, in
~/.local/bin. - Your existing
config.nuandenv.nuare renamed with a.bakextension. The history is kept. - Later,
update-profileupdates both Nushell and the profile.
Tip
Some software can only open PowerShell. Run redirect-powershell to make interactive PowerShell sessions open Nushell instead: it adds a few lines to the profile of each installed PowerShell (pwsh and Windows PowerShell). Scripts and commands run through PowerShell are not affected, and redirect-powershell --remove undoes it.
The installed profile directory is a Git clone of this repository: work and commit in it directly.
Run these commands in Nushell from the profile directory. The tests require pnpm and Node.js.
| Command | Purpose |
|---|---|
nu -n -c 'nu-check --debug config.nu' |
Check that the full profile parses and loads. |
nu -n tests/run.nu [filter] |
Run the tests, or only those whose file or name contains filter. |