# Nushell Environment Config File # Set default editor $env.config.buffer_editor = "helix" # Remove welcome message $env.config.show_banner = false mkdir ($nu.data-dir | path join "vendor/autoload") starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.nu") # Specifies how environment variables are: # - converted from a string to a value on Nushell startup (from_string) # - converted from a value back to a string when running external commands (to_string) # Note: The conversions happen *after* config.nu is loaded $env.ENV_CONVERSIONS = { "PATH": { from_string: { |s| $s | split row (char esep) | path expand --no-symlink } to_string: { |v| $v | path expand --no-symlink | str join (char esep) } } "Path": { from_string: { |s| $s | split row (char esep) | path expand --no-symlink } to_string: { |v| $v | path expand --no-symlink | str join (char esep) } } } # Directories to search for scripts when calling source or use # The default for this is $nu.default-config-dir/scripts $env.NU_LIB_DIRS = [ ($nu.default-config-dir | path join 'scripts') # add /scripts ] # Directories to search for plugin binaries when calling register # The default for this is $nu.default-config-dir/plugins $env.NU_PLUGIN_DIRS = [ ($nu.default-config-dir | path join 'plugins') # add /plugins ] # Various paths $env.CARGO_HOME = ($env.HOME | path join ".cargo") # PATH use std "path add" path add ($env.CARGO_HOME | path join "bin") path add ($env.HOME | path join "go" "bin") path add ($env.HOME | path join "bin") path add ($env.HOME | path join ".local" "bin") path add /usr/bin path add /usr/sbin path add /usr/local/bin $env.PATH = ($env.PATH | uniq)