-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenv.nu
More file actions
40 lines (35 loc) · 1.36 KB
/
Copy pathenv.nu
File metadata and controls
40 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Homebrew PATH
$env.PATH = ($env.PATH | split row (char esep) | prepend "/opt/homebrew/bin")
# GUI-launched terminals (Ghostty from Dock/Finder) inherit launchd's minimal PATH
# which omits /usr/local/bin where the VS Code `code` CLI lives.
$env.PATH = ($env.PATH | append "/usr/local/bin" | uniq)
# mise shims, so VS Code's Run Task can find node. integrations/mise.nu only
# hooks pre_prompt, and a task shell never draws a prompt.
$env.PATH = ($env.PATH | prepend $"($env.HOME)/.local/share/mise/shims")
# Starship prompt
$env.STARSHIP_SHELL = "nu"
$env.STARSHIP_SESSION_KEY = (random chars -l 16)
$env.PROMPT_MULTILINE_INDICATOR = (^starship prompt --continuation)
$env.PROMPT_INDICATOR = ""
$env.PROMPT_COMMAND = { ||
starship prompt --cmd-duration $env.CMD_DURATION_MS $'--status=($env.LAST_EXIT_CODE)'
}
$env.PROMPT_COMMAND_RIGHT = ""
# env.nu
#
# Installed by:
# version = "0.108.0"
#
# Previously, environment variables were typically configured in `env.nu`.
# In general, most configuration can and should be performed in `config.nu`
# or one of the autoload directories.
#
# This file is generated for backwards compatibility for now.
# It is loaded before config.nu and login.nu
#
# See https://www.nushell.sh/book/configuration.html
#
# Also see `help config env` for more options.
#
# You can remove these comments if you want or leave
# them for future reference.