mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-05 23:14:46 -06:00
Major shell migration replacing Zsh/Oh-My-Zsh with Fish shell: - Remove all Zsh configurations (dot_zshrc.tmpl, dot_p10k.zsh) - Remove Oh-My-Zsh external dependencies from .chezmoiexternal.toml - Add complete Fish shell setup with config.fish.tmpl and abbr.fish.tmpl - Implement Fish-native functions for lazy-loading tools (mise, pyenv, zoxide, etc.) - Create commonrc.fish.tmpl for cross-shell compatibility - Add Fish plugin management via Fisher (tide prompt, fzf.fish) - Update documentation (CLAUDE.md, TODO.md, ONBOARDING.md) to reflect Fish - Add .fish.tmpl file association to VS Code settings - Enhance PowerShell profile with lsd aliases - Configure git delta pager and zdiff3 merge conflict style - Update WSL keychain integration for Fish shell This migration maintains all existing tool integrations while improving startup performance through lazy-loading and Fish's native features.
90 lines
2.4 KiB
Cheetah
90 lines
2.4 KiB
Cheetah
# Fish shell common configuration
|
|
# This template provides environment setup for Fish shell
|
|
|
|
# General configuration
|
|
set -gx EDITOR "micro"
|
|
set -gx GPG_TTY (tty)
|
|
set -gx MICRO_TRUECOLOR 1
|
|
set -gx TERM xterm-256color # fixes terminal colors when ssh'ing into laptop
|
|
|
|
# Authentication
|
|
set -gx OPENAI_API_KEY "{{ dopplerProjectJson.OPENAI_CHATGPT_CLI }}"
|
|
|
|
# hishtory (lazy-loaded via __init_hishtory function)
|
|
test -d $HOME/.hishtory && fish_add_path $HOME/.hishtory
|
|
|
|
# PATH setup
|
|
test -d $HOME/bin && fish_add_path $HOME/bin
|
|
fish_add_path /usr/local/bin
|
|
fish_add_path $HOME/.local/bin
|
|
test -d /usr/local/go/bin && fish_add_path /usr/local/go/bin # Go
|
|
test -d $HOME/go/bin && fish_add_path $HOME/go/bin # Go-installed tools
|
|
test -d $HOME/.local/share/bob/nvim-bin && fish_add_path $HOME/.local/share/bob/nvim-bin # Bob, Neovim package manager
|
|
|
|
# Deno
|
|
if test -d $HOME/.deno
|
|
source $HOME/.deno/env.fish 2>/dev/null || set -gx DENO_INSTALL $HOME/.deno && fish_add_path $DENO_INSTALL/bin
|
|
end
|
|
|
|
# Rust (Cargo)
|
|
if test -f $HOME/.cargo/env.fish
|
|
source $HOME/.cargo/env.fish
|
|
else if test -f $HOME/.cargo/env
|
|
# Fallback: parse bash env file
|
|
set -gx CARGO_HOME $HOME/.cargo
|
|
fish_add_path $CARGO_HOME/bin
|
|
end
|
|
|
|
# Homebrew
|
|
if test -f /home/linuxbrew/.linuxbrew/bin/brew
|
|
eval (/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
|
end
|
|
|
|
set -gx PYENV_ROOT $HOME/.pyenv
|
|
|
|
# bun
|
|
set -gx BUN_INSTALL $HOME/.bun
|
|
fish_add_path $BUN_INSTALL/bin
|
|
# Note: Bun's _bun file is bash-specific, Fish completions handled separately
|
|
|
|
# jenv (Java version manager)
|
|
if test -d $HOME/.jenv/bin
|
|
fish_add_path $HOME/.jenv/bin
|
|
if command -q jenv
|
|
jenv init - fish | source
|
|
end
|
|
end
|
|
|
|
# pnpm
|
|
set -gx PNPM_HOME $HOME/.local/share/pnpm
|
|
if not contains $PNPM_HOME $PATH
|
|
fish_add_path $PNPM_HOME
|
|
end
|
|
|
|
# spicetify
|
|
if test -d $HOME/.spicetify
|
|
fish_add_path $HOME/.spicetify
|
|
end
|
|
|
|
# pulumi
|
|
if test -d $HOME/.pulumi/bin
|
|
fish_add_path $HOME/.pulumi/bin
|
|
end
|
|
|
|
# dotnet
|
|
if test -d $HOME/.dotnet
|
|
set -gx DOTNET_ROOT $HOME/.dotnet
|
|
fish_add_path $DOTNET_ROOT
|
|
fish_add_path $DOTNET_ROOT/tools
|
|
end
|
|
|
|
# Note: Aliases are defined in Fish-native format in ~/.config/fish/conf.d/abbr.fish
|
|
# The bash_aliases file contains bash-specific syntax and is not sourced here
|
|
|
|
{{- /* WSL-specific settings */ -}}
|
|
{{- if .data.wsl }}
|
|
|
|
## Ensures CLI apps open URLs in the default Windows browser
|
|
set -gx BROWSER 'powershell.exe /c start'
|
|
{{- end }}
|