Import from root chezmoi source

This commit is contained in:
Prad Nukala committed 2026-10-14 13:32:31 -04:00
commit 3eeef30313
61 files changed
+2833

No files matched your search

+69
View File
@@ -0,0 +1,69 @@
# Environment — non-secret. Secrets live in conf.d/secrets.fish (gitignored).
set -g fish_greeting
# Bottom-pinned prompt toggle (config.fish + functions/clear.fish).
# 1 = pin prompt to the bottom of the terminal, 0 = default top prompt.
# Respects an inherited value, so `FISH_BOTTOM_PROMPT=0 fish` opts out.
set -q FISH_BOTTOM_PROMPT; or set -gx FISH_BOTTOM_PROMPT 0
# GPU (ROCm / HIP) — used by ML scripts, so set unconditionally.
set -gx HSA_OVERRIDE_GFX_VERSION 11.5.0
set -gx ROCR_VISIBLE_DEVICES 0
set -gx HIP_VISIBLE_DEVICES 0
set -gx EGET_BIN $HOME/.local/bin
# Repo roots (ghq)
set -gx GHQ_ROOT $HOME/Code
set -gx CODE_ROOT $HOME/Code
set -gx EDITOR nvim
set -gx VISUAL nvim
# Go env (GOPATH/GOBIN) is pinned in ~/.config/mise/config.toml [env] because
# mise's fish hook re-applies env each prompt and would clobber a shell-set
# GOBIN. GOROOT is provided by mise (toolchain under ~/.local/share/mise).
# Android SDK — relocated under ~/.local/share/android.
set -gx ANDROID_HOME $HOME/.local/share/android
set -gx ANDROID_SDK_ROOT $ANDROID_HOME
# Git hosts (non-secret; tokens are in secrets.fish)
set -gx GITEA_LOGIN prad.codes
set -gx GITLAB_HOST git.sonr.org
# GITHUB_TOKEN from gh's keyring login — never stored on disk. An inherited
# value wins, so nested shells skip the gh call.
if not set -q GITHUB_TOKEN; and command -q gh
set -l _gh_token (gh auth token 2>/dev/null)
test -n "$_gh_token"; and set -gx GITHUB_TOKEN $_gh_token
end
set -gx EDITOR nvim
set -gx VISUAL nvim
test -x /usr/bin/brave-origin; and set -gx BROWSER /usr/bin/brave-origin
test -x /usr/bin/chromium; and set -gx CHROME_EXECUTABLE /usr/bin/chromium
# Puppeteer / CDP tools — chrome-headless-shell via @puppeteer/browsers,
# symlinked from ~/.config/chrome-headless-shell/<version>/ into ~/.local/bin.
# NOTE: omp's browser tool prefers detected system Chrome over this env var;
# ~/.local/bin/google-chrome-stable shims its first detection candidate to the
# same binary (and masks the broken /usr/bin/google-chrome wrapper).
set -gx PUPPETEER_EXECUTABLE_PATH $HOME/.local/bin/chrome-headless-shell
set -gx ZEAL_DOCSETS $HOME/.var/app/org.zealdocs.Zeal/data/Zeal/Zeal/docsets
set -gx SHARP_IGNORE_GLOBAL_LIBVIPS 1
set -gx FZF_DEFAULT_OPTS "
--height=~40%
--layout=default
--info=inline-right
--border=rounded
--prompt=' '
--pointer='▶'
--marker='✓'
--color=fg:#ffffff,fg+:#ffffff,bg:-1,bg+:#3c4048
--color=hl:#5ef1ff,hl+:#5ef1ff
--color=info:#7b8496,header:#7b8496,border:#7b8496
--color=prompt:#5ef1ff,pointer:#ffaecf,marker:#5eff6c,spinner:#f1ff5e
--color=gutter:-1,query:#ffffff
"