configs

configs
git clone https://git.prime8.dev/configs.git
Log | Files | Refs | README

commit ef30c73d50f1111548292479973acd7ec74a3894
parent dd74c810f9eeb5df8c57dfaf3fadef5f79896005
Author: Damian Myrda <damian@prime8.dev>
Date:   Tue, 17 Feb 2026 15:30:39 -0600

refactor(fish): reorganize and clean up config

- Make BROWSER conditional based on OS (open vs xdg-open)
- Add opencode, rust, and bun path setup with conditional checks
- Move 1password SSH agent and secrets to top level
- Remove code alias for Zed editor
- Move fnm env setup outside interactive block
- Clean up bun path configuration
- Remove NX environment variables
- Fix fnm command check to use -sq flag

Diffstat:
Mprograms/fish/config.fish | 52++++++++++++++++++++++++++++------------------------
1 file changed, 28 insertions(+), 24 deletions(-)

diff --git a/programs/fish/config.fish b/programs/fish/config.fish @@ -1,13 +1,37 @@ # defaults set -g EDITOR nvim -set -g BROWSER "open -a orion" +if test "$(uname -s)" = "Darwin" + set -gx BROWSER open +else + set -gx BROWSER xdg-open +end # path set -gx PATH "$HOME/.local/bin" $PATH + +## opencode +if test -d ~/.opencode/bin + fish_add_path ~/.opencode/bin +end + +## rust if test -f ~/.cargo/env.fish source ~/.cargo/env.fish end +## bun +if test -f ~/.bun/bin/bun + fish_add_path ~/.bun/bin +end + +# 1password ssh agent +set -gx SSH_AUTH_SOCK "$HOME/.1password/agent.sock" + +# secrets +if test -f ~/.config/fish/secrets.fish + source ~/.config/fish/secrets.fish +end + if status is-interactive # fish set -U fish_greeting @@ -45,7 +69,6 @@ if status is-interactive # programs alias ed $EDITOR - alias code "flatpak run dev.zed.Zed" alias web $BROWSER # git @@ -57,28 +80,9 @@ if status is-interactive abbr commit "git commit" abbr pr "gh pr" abbr release "gh release" - - # nx - set -gx NX_TUI false - set -gx NX_PARALLEL "100%" - - # fnm - if command -v fnm >/dev/null - fnm env --use-on-cd --shell fish | source - end end -# bun -set --export BUN_INSTALL "$HOME/.bun" -set --export PATH $BUN_INSTALL/bin $PATH - -# opencode -fish_add_path /var/home/moncheeta/.opencode/bin - -# 1password ssh agent -set -gx SSH_AUTH_SOCK "$HOME/.1password/agent.sock" - -# secrets -if test -f ~/.config/fish/secrets.fish - source ~/.config/fish/secrets.fish +# fnm +if command -sq fnm + fnm env --use-on-cd --shell fish | source end