Skip to content

Commit

Permalink
fix: zoxide for nushell patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan-TheGentleman committed Feb 7, 2025
1 parent 97be00c commit c00622d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
2 changes: 1 addition & 1 deletion GentlemanNushell/config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ $env.config = {
pre_prompt: [{ null }] # run before the prompt is shown
pre_execution: [{ null }] # run before the repl input is run
env_change: {
PWD: [{|before, after| null }] # run if the PWD environment is different since the last repl input
PWD: [{|before, after| if $before != $after { zoxide add -- $after } else { null }}]
}
display_output: "if (term size).columns >= 100 { table -e } else { table }" # run to display the output of a pipeline
command_not_found: { null } # return an error message when a command is not found
Expand Down
2 changes: 1 addition & 1 deletion GentlemanNushell/env.nu
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ $env.PATH = (
mkdir ~/.cache/starship
mkdir ~/.cache/carapace
mkdir ~/.local/share/atuin

$env.__zoxide_hooked = true
$env.STARSHIP_CONFIG = $env.HOME | path join ".config/starship.toml"
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional

Expand Down
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,22 +301,6 @@ mkdir -p ~/.local/share/atuin
cp -rf starship.toml ~/.config/
```

**IMPORTANT** as for now, on the latest versión of Nushell `0.102.0`,
Zoxide NEEDS to update it's versión to be up to Nushell changes...
BUT I already made it work, please use the following command to use a
custom .zoxide.nu file if you see any issues:

```bash
rm -rf ~/.zoxide.nu
cp -r GentlemanNushell/.zoxide.nu ~/
```

Comment this line until the problem is fixed inside nushell `env.nu` after first run

```bash
zoxide init nushell | save -f ~/.zoxide.nu
```

###### 2. Step

**_Arch Linux / Linux_**
Expand Down

0 comments on commit c00622d

Please sign in to comment.