config
git clone https://git.pyrossh.dev/config
Common configuration
nushell/env.nu
| 5ab4d00 | 1 | # Specifies how environment variables are: |
| 5ab4d00 | 2 | # - converted from a string to a value on Nushell startup (from_string) |
| 5ab4d00 | 3 | # - converted from a value back to a string when running external commands (to_string) |
| 5ab4d00 | 4 | # Note: The conversions happen *after* config.nu is loaded |
| 5ab4d00 | 5 | $env.ENV_CONVERSIONS = { |
| 5ab4d00 | 6 | "PATH": { |
| 5ab4d00 | 7 | from_string: { |s| $s | split row (char esep) | path expand --no-symlink } |
| 5ab4d00 | 8 | to_string: { |v| $v | path expand --no-symlink | str join (char esep) } |
| 5ab4d00 | 9 | } |
| 5ab4d00 | 10 | "Path": { |
| 5ab4d00 | 11 | from_string: { |s| $s | split row (char esep) | path expand --no-symlink } |
| 5ab4d00 | 12 | to_string: { |v| $v | path expand --no-symlink | str join (char esep) } |
| 5ab4d00 | 13 | } |
| 5ab4d00 | 14 | } |
| 5ab4d00 | 15 | |
| 5ab4d00 | 16 | # Directories to search for scripts when calling source or use |
| 5ab4d00 | 17 | # The default for this is $nu.default-config-dir/scripts |
| 5ab4d00 | 18 | $env.NU_LIB_DIRS = [ |
| 5ab4d00 | 19 | ($nu.default-config-dir | path join 'scripts') # add <nushell-config-dir>/scripts |
| 5ab4d00 | 20 | ($nu.data-dir | path join 'completions') # default home for nushell completions |
| 5ab4d00 | 21 | ] |
| 5ab4d00 | 22 | |
| 5ab4d00 | 23 | # Directories to search for plugin binaries when calling register |
| 5ab4d00 | 24 | # The default for this is $nu.default-config-dir/plugins |
| 5ab4d00 | 25 | $env.NU_PLUGIN_DIRS = [ |
| 5ab4d00 | 26 | ($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins |
| 5ab4d00 | 27 | ] |
| 5ab4d00 | 28 | |
| 818bd47 | 29 | $env.PROMPT_COMMAND = { || oh-my-posh print primary --config $'/opt/homebrew/opt/oh-my-posh/themes/zash.omp.json' } |
| 394cfc9 | 30 | $env.PROMPT_INDICATOR = $"(ansi y)$> (ansi reset)" |
| 394cfc9 | 31 | |
| 5ab4d00 | 32 | use std "path add" |
| 5ab4d00 | 33 | $env.PATH = ($env.PATH | split row (char esep)) |
| 67982fe | 34 | $env.JAVA_HOME = "/opt/homebrew/opt/openjdk@17" |
| aca92b7 | 35 | $env.ANDROID_HOME = "/Users/pyrossh/Library/Android/sdk" |
| 67982fe | 36 | $env.ANDROID_SDK_ROOT = "/Users/pyrossh/Library/Android/sdk" |
| 67982fe | 37 | $env.ANDROID_NDK_ROOT = "/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456" |
| 5e279f0 | 38 | $env.ANDROID_NDK_HOME = "/Users/pyrossh/Library/Android/sdk/ndk/29.0.13113456" |
| 5ab4d00 | 39 | path add /opt/homebrew/bin |
| 67982fe | 40 | path add /opt/homebrew/opt/openjdk@17/bin |
| f272899 | 41 | path add /opt/homebrew/opt/ruby/bin |
| 67982fe | 42 | path add /opt/homebrew/opt/curl/bin |
| 394cfc9 | 43 | path add ~/.cargo/bin |
| 67982fe | 44 | path add ~/.pub-cache/bin |
| 67982fe | 45 | path add ~/Library/Android/sdk/emulator/ |
| f272899 | 46 | path add ~/Library/Android/sdk/platform-tools/ |
| aca92b7 | 47 | path add ~/.dotnet |
| aca92b7 | 48 | path add ~/.dotnet/tools |
| aca92b7 | 49 | path add ~/.local/bin |
| aca92b7 | 50 | path add /usr/local/bin |
| 67982fe | 51 | path add (brew --prefix llvm)/bin |