set -gx BAT_THEME "ansi" set -gx DFT_BACKGROUND "light" # XDG variables set -gx XDG_DATA_HOME "$HOME/.local/share" set -gx XDG_CONFIG_HOME "$HOME/.config" set -gx XDG_STATE_HOME "$HOME/.local/state" set -gx XDG_CACHE_HOME "$HOME/.cache" set -gx XDG_BIN_HOME "$HOME/.local/bin" set -gx XDG_BIN_DIR $XDG_BIN_HOME # Moving dotfiles around set -gx WINEPREFIX "$XDG_DATA_HOME"/wine set -gx WORKON_HOME "$XDG_DATA_HOME/virtualenvs" set -gx SQLITE_HISTORY "$XDG_CACHE_HOME"/sqlite_history set -gx BUNDLE_USER_CONFIG "$XDG_CONFIG_HOME"/bundle set -gx BUNDLE_USER_CACHE "$XDG_CACHE_HOME"/bundle set -gx BUNDLE_USER_PLUGIN "$XDG_DATA_HOME"/bundle set -gx NUGET_PACKAGES "$XDG_CACHE_HOME"/NuGetPackages set -gx DVDCSS_CACHE "$XDG_DATA_HOME"/dvdcss set -gx KDEHOME "$XDG_CONFIG_HOME"/kde set -gx GOPATH "$XDG_DATA_HOME"/go set -gx ZIM_HOME "$XDG_CONFIG_HOME"/.zim set -gx GHCUP_USE_XDG_DIRS "ishouldjustbeabletoexportthisnotsetit" set -gx NODE_PATH "$XDG_DATA_HOME/npm-packages/lib/node_modules" set -gx CARGO_HOME "$XDG_DATA_HOME"/cargo set -gx ASDF_DATA_DIR "$XDG_DATA_HOME/asdf" # Ruby crap rbenv init - | source fish_add_path "$HOME/.rbenv/versions/3.2.2/bin" # Android crap set -gx ANDROID_HOME "$XDG_DATA_HOME/Android" set -gx ANDROID_SDK_ROOT "$ANDROID_HOME" fish_add_path "$ANDROID_HOME/cmdline-tools/latest/bin" fish_add_path "$ANDROID_HOME/platform-tools" fish_add_path "$ANDROID_HOME/emulator" # Executable paths fish_add_path "$XDG_CONFIG_HOME/emacs/bin" fish_add_path "$GOPATH/bin" fish_add_path "$XDG_DATA_HOME/cargo/bin" fish_add_path "$HOME/.radicle/bin" fish_add_path "$HOME/.local/bin" fish_add_path "/usr/lib/kf6" fish_add_path "/usr/lib/kf5" fish_add_path "/usr/local/go/bin" fish_add_path "$XDG_CACHE_HOME/.bun/bin" # Additional preferences {{ if eq .chezmoi.hostname "sidhe" }} set -gx EDITOR "zed --wait" {{ else }} set -gx EDITOR "zeditor --wait" {{ end }} set -gx VISUAL "$EDITOR" set -gx MANPAGER "nvim +Man!" set -gx COLUMNS 80 set -gx MANWIDTH 80 set -gx CHARM_HOST "charm.secluded.site" set -gx RIPGREP_CONFIG_PATH "$HOME/.config/ripgreprc" set -gx RANGER_LOAD_DEFAULT_RC false # Disable dumb Python keyring integration set -gx PYTHON_KEYRING_BACKEND "keyring.backends.null.Keyring" set -gx UV_PUBLISH_TOKEN '{{ onepasswordRead "op://Private/PyPI/uv angmar" }}' # Authenticate to local Radicle (.xyz) node {{ if eq .chezmoi.hostname "angmar" }} set -gx RAD_PASSWORD '{{ onepasswordRead "op://Private/2ujzijel6ni3np2uj5k5syptzm/angmar" }}' {{ end }} {{ if eq .chezmoi.hostname "sidhe" }} set -gx RAD_PASSWORD '{{ onepasswordRead "op://Private/2ujzijel6ni3np2uj5k5syptzm/sidhe" }}' {{ end }} # Auth to SourceHut set -gx SRHT_TOKEN '{{ onepasswordRead "op://Private/SourceHut/token" }}' set -gx JIRA_API_TOKEN '{{ onepasswordRead "op://Private/Atlassian/jira key" }}' set -gx KAGI_API_KEY '{{ onepasswordRead "op://Shared/Kagi/api_key" }}' # LLM Crap set -gx OPENAI_API_KEY '{{ onepasswordRead "op://Private/OpenAI/api_keys/shell" }}' set -gx OPENROUTER_API_KEY '{{ onepasswordRead "op://Shared/OpenRouter/keys/shell" }}' set -gx OPENROUTER_KEY "$OPENROUTER_API_KEY" set -gx EXA_API_KEY '{{ onepasswordRead "op://Private/Exa/api keys/shell" }}' set -gx PARALLEL_API_KEY '{{ onepasswordRead "op://Private/Parallel.ai/api key" }}' set -gx GEMINI_API_KEY '{{ onepasswordRead "op://Private/Personal Google/gemini api" }}' set -gx LLM_GEMINI_KEY "$GEMINI_API_KEY" set -gx PERPLEXITY_API_KEY '{{ onepasswordRead "op://Private/nkhcb2h2ecfh26hksdgpw5txfu/api keys/CLI" }}' set -gx PERPLEXITY_LENSES '{{ onepasswordRead "op://Private/nkhcb2h2ecfh26hksdgpw5txfu/lenses/text" }}' set -gx ZAI_API_KEY '{{ onepasswordRead "op://Private/iqjxrmks3xqrrjrz5rosh3bagy/api keys/claude code" }}' set -gx CEREBRAS_API_KEY '{{ onepasswordRead "op://Private/Cerebras/api keys/code" }}' set -gx OLLAMA_HOST '100.108.156.33:11434' # PATHs fish_add_path "$XDG_DATA_HOME/npm-packages/bin" # Guix set -gx GUIX_LOCPATH "$HOME/.guix-profile/lib/locale" set -gx GUIX_PROFILE "$HOME/.guix-profile" fish_add_path "$GUIX_PROFILE/bin" # ASDF configuration if test -z $ASDF_DATA_DIR set _asdf_shims "$HOME/.asdf/shims" else set _asdf_shims "$ASDF_DATA_DIR/shims" end if status is-interactive {{ if ne .chezmoi.hostname "sidhe" }} alias zed="zeditor" alias task="go-task" {{ end }} # Bunch of aliases alias wget="wget --hsts-file=\"$XDG_DATA_HOME/wget-hsts\"" alias svn="svn --config-dir $XDG_CONFIG_HOME/subversion" alias ts="tailscale" alias datetime="date +%Y-%m-%d_%H%M%S_%Z" alias clip="xclip -selection clipboard" alias send="rsync -amzzP" alias bat="bat -n --tabs 2" alias erase="shred -vzfun 32" alias dl="yt-dlp --write-sub --write-auto-sub --sub-lang en --sub-format srt/best --convert-subs srt --embed-subs -o '%(upload_date)s %(title)s.%(ext)s'" alias us="unsilence -t 15 -as 1.25" alias sxiv="sxiv -p" alias c="chezmoi" alias t="tea" alias j="just" alias ls="lsd" alias loghtml="llm logs -ceu | mdas -h | grep '\.html\$' | read path_to_response && xdg-open \"LLM Responses/\$path_to_response\" && echo \"Opened \$path_to_response\"" alias soft="ssh git.secluded.site" alias g="git" scheme set tomorrow starship init fish | source atuin init --disable-up-arrow fish | source enable_transience end if status is-login set -q SSH_AUTH_SOCK; or set -gx SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket" ssh-add -l > /dev/null 2>&1 if test $status -ne 0 eval (ssh-agent -c -a "$SSH_AUTH_SOCK" > /dev/null) echo "Spawned new ssh-agent. PID: $SSH_AGENT_PID" end end # Do not use fish_add_path (added in Fish 3.2) because it # potentially changes the order of items in PATH if not contains $_asdf_shims $PATH set -gx --prepend PATH $_asdf_shims end set --erase _asdf_shims