chore: fixed nushell symliks 2ba0abef
Steve · 2026-05-13 23:21 3 file(s) · +72 −3
nushell/config.nu +1 −1
983 983
984 984
mkdir ($nu.data-dir | path join "vendor/autoload")
985 985
starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu")
986 -
source ~/.zoxide.nu
986 +
source ~/.config/nushell/zoxide.nu
987 987
source ~/.cargo/env.nu
nushell/env.nu +1 −2
100 100
$env.PATH = ($env.PATH | split row (char esep) | prepend $env.PNPM_HOME )
101 101
102 102
$env.GPG_TTY = (tty)
103 -
# source ~/.config/nushell/darkmatter.nu
103 +
source ~/.config/nushell/darkmatter.nu
104 104
source ~/.config/nushell/git-completions.nu
105 105
source ~/.cargo/env.nu
106 106
108 108
109 109
$env.BULLETS_FEEDS = "feeds.stevedylan.dev/feed.xml"
110 110
111 -
zoxide init nushell | save -f ~/.zoxide.nu
112 111
mkdir ~/.cache/starship
113 112
starship init nu | save -f ~/.cache/starship/init.nu
114 113
nushell/zoxide.nu (added) +70 −0
1 +
# Code generated by zoxide. DO NOT EDIT.
2 +
3 +
# =============================================================================
4 +
#
5 +
# Hook configuration for zoxide.
6 +
#
7 +
8 +
# Initialize hook to add new entries to the database.
9 +
export-env {
10 +
  $env.config = (
11 +
    $env.config?
12 +
    | default {}
13 +
    | upsert hooks { default {} }
14 +
    | upsert hooks.env_change { default {} }
15 +
    | upsert hooks.env_change.PWD { default [] }
16 +
  )
17 +
  let __zoxide_hooked = (
18 +
    $env.config.hooks.env_change.PWD | any { try { get __zoxide_hook } catch { false } }
19 +
  )
20 +
  if not $__zoxide_hooked {
21 +
    $env.config.hooks.env_change.PWD = ($env.config.hooks.env_change.PWD | append {
22 +
      __zoxide_hook: true,
23 +
      code: {|_, dir| ^zoxide add -- $dir}
24 +
    })
25 +
  }
26 +
}
27 +
28 +
# =============================================================================
29 +
#
30 +
# When using zoxide with --no-cmd, alias these internal functions as desired.
31 +
#
32 +
33 +
# Jump to a directory using only keywords.
34 +
def --env --wrapped __zoxide_z [...rest: string] {
35 +
  let path = match $rest {
36 +
    [] => {'~'},
37 +
    [ '-' ] => {'-'},
38 +
    [ $arg ] if ($arg | path expand | path type) == 'dir' => {$arg}
39 +
    _ => {
40 +
      ^zoxide query --exclude $env.PWD -- ...$rest | str trim -r -c "\n"
41 +
    }
42 +
  }
43 +
  cd $path
44 +
}
45 +
46 +
# Jump to a directory using interactive search.
47 +
def --env --wrapped __zoxide_zi [...rest:string] {
48 +
  cd $'(^zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
49 +
}
50 +
51 +
# =============================================================================
52 +
#
53 +
# Commands for zoxide. Disable these using --no-cmd.
54 +
#
55 +
56 +
alias z = __zoxide_z
57 +
alias zi = __zoxide_zi
58 +
59 +
# =============================================================================
60 +
#
61 +
# Add this to your env file (find it by running `$nu.env-path` in Nushell):
62 +
#
63 +
#   zoxide init nushell | save -f ~/.zoxide.nu
64 +
#
65 +
# Now, add this to the end of your config file (find it by running
66 +
# `$nu.config-path` in Nushell):
67 +
#
68 +
#   source ~/.zoxide.nu
69 +
#
70 +
# Note: zoxide only supports Nushell v0.89.0+.