~repos /config

#brew#nushell

git clone https://pyrossh.dev/repos/config.git

Common configuration



file:

nushell/env.nu



Terminal window
# 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 <nushell-config-dir>/scripts
($nu.data-dir | path join 'completions') # default home for nushell completions
]
# 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 <nushell-config-dir>/plugins
]
$env.PROMPT_COMMAND = { || oh-my-posh print primary --config $'/opt/homebrew/opt/oh-my-posh/themes/zash.omp.json' }
$env.PROMPT_INDICATOR = $"(ansi y)$> (ansi reset)"
use std "path add"
$env.PATH = ($env.PATH | split row (char esep))
$env.JAVA_HOME = "/Applications/Android Studio.app/Contents/jbr/Contents/Home"
$env.ANDROID_HOME = "/Users/pyrossh/Library/Android/sdk"
$env.NDK_HOME = "/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456"
path add /opt/homebrew/bin
path add /opt/homebrew/opt/openjdk/bin
path add /opt/homebrew/opt/ruby/bin
path add ~/.cargo/bin
path add ~/Library/Android/sdk/platform-tools/
path add ~/.dotnet
path add ~/.dotnet/tools
path add ~/.local/bin
path add /usr/local/bin