| 1 | # Nushell Environment Config File |
| 2 | # |
| 3 | # version = "0.99.1" |
| 4 | |
| 5 | # The prompt indicators are environmental variables that represent |
| 6 | # the state of the prompt |
| 7 | $env.PROMPT_INDICATOR = {|| "> " } |
| 8 | $env.PROMPT_INDICATOR_VI_INSERT = {|| "" } |
| 9 | $env.PROMPT_INDICATOR_VI_NORMAL = {|| "" } |
| 10 | $env.PROMPT_MULTILINE_INDICATOR = {|| "::: " } |
| 11 | $env.STARSHIP_SHELL = "nu" |
| 12 | |
| 13 | # Specifies how environment variables are: |
| 14 | # - converted from a string to a value on Nushell startup (from_string) |
| 15 | # - converted from a value back to a string when running external commands (to_string) |
| 16 | # Note: The conversions happen *after* config.nu is loaded |
| 17 | $env.ENV_CONVERSIONS = { |
| 18 | "PATH": { |
| 19 | from_string: { |s| $s | split row (char esep) | path expand --no-symlink } |
| 20 | to_string: { |v| $v | path expand --no-symlink | str join (char esep) } |
| 21 | } |
| 22 | "Path": { |
| 23 | from_string: { |s| $s | split row (char esep) | path expand --no-symlink } |
| 24 | to_string: { |v| $v | path expand --no-symlink | str join (char esep) } |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | # Directories to search for scripts when calling source or use |
| 29 | # The default for this is $nu.default-config-dir/scripts |
| 30 | $env.NU_LIB_DIRS = [ |
| 31 | ($nu.default-config-dir | path join 'scripts') # add <nushell-config-dir>/scripts |
| 32 | ($nu.data-dir | path join 'completions') # default home for nushell completions |
| 33 | ] |
| 34 | |
| 35 | # Directories to search for plugin binaries when calling register |
| 36 | # The default for this is $nu.default-config-dir/plugins |
| 37 | $env.NU_PLUGIN_DIRS = [ |
| 38 | ($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins |
| 39 | ] |
| 40 | |
| 41 | |
| 42 | # To add entries to PATH (on Windows you might use Path), you can use the following pattern: |
| 43 | # $env.PATH = ($env.PATH | split row (char esep) | prepend '/some/path') |
| 44 | # An alternate way to add entries to $env.PATH is to use the custom command `path add` |
| 45 | # which is built into the nushell stdlib: |
| 46 | use std "path add" |
| 47 | |
| 48 | # $env.PATH = ($env.PATH | split row (char esep)) |
| 49 | # path add /some/path |
| 50 | # path add ($env.CARGO_HOME | path join "bin") |
| 51 | # path add ($env.HOME | path join ".local" "bin") |
| 52 | # $env.PATH = ($env.PATH | uniq) |
| 53 | |
| 54 | path add /opt/homebrew/bin |
| 55 | path add /usr/local/go/bin |
| 56 | path add ~/.cargo/bin |
| 57 | path add ~/.local/share/go/bin |
| 58 | path add ~/.local/bin |
| 59 | path add /usr/local/bin |
| 60 | path add ~/.bun/bin |
| 61 | path add /Applications/Docker.app/Contents/Resources/bin |
| 62 | $env.GOROOT = "/usr/local/go" |
| 63 | $env.GOPATH = ($env.HOME | path join ".local" "share" "go") |
| 64 | $env.GOMODCACHE = ($env.HOME | path join ".local" "share" "go-mod-cache") |
| 65 | $env.FZF_DEFAULT_COMMAND = 'fd --type f --hidden --exclude ".git"' |
| 66 | $env.FZF_DEFAULT_OPTS = [ |
| 67 | '--color=fg:8:bold,fg+:15,bg:-1,bg+:-1' |
| 68 | '--color=hl:10:bold,hl+:10:bold' |
| 69 | '--color=info:8,spinner:9,header:4' |
| 70 | '--color=prompt:2,pointer:9,marker:1' |
| 71 | '--color=border:7,label:15:bold,query:15' |
| 72 | '--border="rounded"' |
| 73 | '--border-label=""' |
| 74 | '--preview-window="border-rounded"' |
| 75 | '--prompt="> "' |
| 76 | '--marker=" "' |
| 77 | '--pointer="◆"' |
| 78 | '--separator=""' |
| 79 | '--scrollbar=""' |
| 80 | '--gutter=" "' |
| 81 | '--info=inline-right' |
| 82 | ] | str join ' ' |
| 83 | path add ~/.tmux/plugins/t-smart-tmux-session-manager/bin |
| 84 | path add ~/.deno/bin |
| 85 | path add ~/.foundry/bin |
| 86 | path add ~/.local/share/ |
| 87 | path add ~/.local/share/solana/install/active_release/bin |
| 88 | path add ~/.aztec/bin |
| 89 | path add ~/.nargo/bin |
| 90 | path add ~/.helios/bin |
| 91 | |
| 92 | $env.config.filesize.unit = "MB" |
| 93 | $env.BAT_THEME_DARK = "ansi" |
| 94 | $env.BAT_THEME = "ansi" |
| 95 | |
| 96 | fnm env --json | from json | load-env |
| 97 | path add ($env.FNM_MULTISHELL_PATH + "/bin") |
| 98 | |
| 99 | $env.PNPM_HOME = ($env.HOME | path join "Library" "pnpm") |
| 100 | $env.PATH = ($env.PATH | split row (char esep) | prepend $env.PNPM_HOME ) |
| 101 | |
| 102 | $env.GPG_TTY = (tty) |
| 103 | source ~/.config/nushell/darkmatter.nu |
| 104 | source ~/.config/nushell/git-completions.nu |
| 105 | source ~/.cargo/env.nu |
| 106 | |
| 107 | $env.EDITOR = "nvim" |
| 108 | |
| 109 | $env.BULLETS_FEEDS = "feeds.stevedylan.dev/feed.xml" |
| 110 | |
| 111 | mkdir ~/.cache/starship |
| 112 | starship init nu | save -f ~/.cache/starship/init.nu |
| 113 | |