chore: optimized nushell envs and config 68ce24a2
Steve · 2025-08-18 19:41 2 file(s) · +14 −29
nushell/config.nu +2 −3
155 155
    }
156 156
157 157
    rm: {
158 -
        always_trash: true # always act as if -t was given. Can be overridden with -p
158 +
        always_trash: false # always act as if -t was given. Can be overridden with -p
159 159
    }
160 160
161 161
    table: {
220 220
            max_results: 100 # setting it lower can improve completion performance at the cost of omitting some options
221 221
            completer: null # check 'carapace_completer' above as an example
222 222
        }
223 -
        use_ls_colors: true # set this to true to enable file/path/directory completions using LS_COLORS
223 +
        use_ls_colors: false # set this to true to enable file/path/directory completions using LS_COLORS
224 224
    }
225 225
226 226
930 930
  echo $"Fetching .gitignore template for ($template)..."
931 931
  curl -sL $"https://www.toptal.com/developers/gitignore/api/($template)" | save .gitignore
932 932
  git add .gitignore
933 -
  git commit -m "Initial commit with .gitignore"
934 933
  echo "Repository initialized with .gitignore template!"
935 934
}
936 935
nushell/env.nu +12 −26
60 60
path add ~/.bun/bin
61 61
path add /Applications/Docker.app/Contents/Resources/bin
62 62
$env.GOROOT = "/usr/local/go"
63 -
$env.GOPATH = "/Users/stevedylandev/.local/share/go"
64 -
$env.GOMODCACHE = "/Users/stevedylandev/.local/share/go-mod-cache"
63 +
$env.GOPATH = ($env.HOME | path join ".local" "share" "go")
64 +
$env.GOMODCACHE = ($env.HOME | path join ".local" "share" "go-mod-cache")
65 65
$env.FZF_DEFAULT_COMMAND = 'fd --type f --hidden --exclude ".git"'
66 66
$env.FZF_DEFAULT_OPTS = [
67 -
  '--color=fg:#c1c1c1,fg+:#ffffff,bg:#121113,bg+:#222222'
68 -
  '--color=hl:#5f8787,hl+:#fbcb97,info:#e78a53,marker:#fbcb97'
69 -
  '--color=prompt:#e78a53,spinner:#5f8787,pointer:#fbcb97,header:#aaaaaa'
70 -
  '--color=border:#333333,label:#888888,query:#ffffff'
67 +
  '--color=fg:7,fg+:15,bg:0,bg+:8'              # fg: ansi[7], fg+: white, bg: ansi[0], bg+: brights[0]
68 +
  '--color=hl:1,hl+:2,info:3,marker:2'          # hl: ansi[1], hl+: ansi[2], info: ansi[3], marker: ansi[2]
69 +
  '--color=prompt:3,spinner:1,pointer:2,header:6' # prompt: ansi[3], spinner: ansi[1], pointer: ansi[2], header: ansi[6]
70 +
  '--color=border:8,label:4,query:15'           # border: brights[0], label: ansi[4], query: white
71 71
  '--border="rounded"'
72 72
  '--border-label=""'
73 73
  '--preview-window="border-rounded"'
80 80
path add ~/.tmux/plugins/t-smart-tmux-session-manager/bin
81 81
path add ~/.deno/bin
82 82
path add ~/.foundry/bin
83 -
path add ~/.local/share/pinata-go-cli
84 83
path add ~/.local/share/
85 84
path add ~/.local/share/solana/install/active_release/bin
86 -
path add /Users/stevedylandev/.local/share/pinata
87 -
path add ~/.sp1/bin
88 85
path add ~/.aztec/bin
89 86
path add ~/.nargo/bin
90 87
path add ~/.helios/bin
91 -
$env.ANDROID_HOME = "~/Library/Android/sdk"
92 -
path add ~/Library/Android/sdk/emulator
93 -
path add ~/Library/Android/sdk/platform-tools
94 -
$env.JAVA_HOME = "/Library/Java/JavaVirtualMachines/zulu-17.jdk/Contents/Home"
95 -
# $env.RUSTUP_TOOLCHAIN = "nightly-2025-01-05"
88 +
96 89
$env.config.filesize.unit = "MB"
97 90
$env.BAT_THEME_DARK = "ansi"
98 91
$env.BAT_THEME = "ansi"
99 -
# $env.FNM_DIR = "/Users/stevedsimkins/Library/Application Support/fnm"
100 -
# $env.FNM_ARCH = "arm64"
101 -
# $env.FNM_LOGLEVEL = "info"
102 -
# $env.FNM_COREPACK_ENABLED = "false"
103 -
# $env.FNM_RESOLVE_ENGINES = "false"
104 -
# $env.FNM_VERSION_FILE_STRATEGY = "local"
105 -
# $env.FNM_MULTISHELL_PATH = "/Users/stevedsimkins/.local/state/fnm_multishells/96094_1730946598404"
106 -
# $env.FNM_NODE_DIST_MIRROR = "https://nodejs.org/dist"
92 +
107 93
fnm env --json | from json | load-env
108 94
path add ($env.FNM_MULTISHELL_PATH + "/bin")
109 95
110 -
# To load from a custom file you can use:
111 -
# source ~/.config/nushell/env.nu
96 +
$env.PNPM_HOME = ($env.HOME | path join "Library" "pnpm")
97 +
$env.PATH = ($env.PATH | split row (char esep) | prepend $env.PNPM_HOME )
112 98
113 -
source ~/.config/nushell/darkmatter.nu
114 -
# source ~/.config/nushell/zoxide.nu
99 +
# source ~/.config/nushell/darkmatter.nu
115 100
source ~/.config/nushell/git-completions.nu
116 101
source ~/.cargo/env.nu
117 102
120 105
zoxide init nushell | save -f ~/.zoxide.nu
121 106
mkdir ~/.cache/starship
122 107
starship init nu | save -f ~/.cache/starship/init.nu
108 +