main dotfiles / dot_config / fish / config.fish
Eric bower  ·  2026-06-08
 1fish_add_path ~/.local/bin /usr/local/go/bin ~/.cargo/bin ~/.yarn/bin ~/.npm-packages/bin
 2
 3if test -f $HOME/.config/fish/private.fish
 4  source $HOME/.config/fish/private.fish
 5end
 6
 7switch (uname)
 8  case Darwin
 9    fish_config theme choose "Tomorrow Night Bright"
10    fish_add_path /opt/homebrew/opt/node@20/bin
11    fish_add_path /opt/homebrew/bin
12    fish_add_path /opt/homebrew/opt/libpq/bin
13
14    set -xg AWS_PROFILE "prod-PowerUserAccess"
15    set -xg CLAUDE_CODE_USE_BEDROCK "1"
16    set -xg AWS_REGION "us-east-1"
17    set -xg HUSKY "0"
18
19    if command -v sdxcli &>/dev/null
20        eval (sdxcli output-shell-commands --shell fish)
21    end
22  case Linux
23    fish_config theme choose "tomorrow-night-bright"
24  case '*'
25    # do things for other OSs
26end
27
28set -U fish_greeting # remove fish greeting
29set -xg LANG en_US.UTF-8
30set -xg EDITOR kak
31set -xg VISUAL kak
32set -xg GPG_TTY (tty)
33set -xg XDG_CONFIG_HOME ~/.config
34set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
35set -xg MDIR ~/mail
36set -xg COLORTERM truecolor
37
38abbr -a pushall "git remote | xargs -I R git push R"
39abbr -a rcp rsync -avzu --progress
40abbr -a sway sway --unsupported-gpu
41abbr -a tre "tree -CF --dirsfirst -L2"
42abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
43abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
44abbr -a ash "autossh -M 0 -q"
45abbr -a picodb "ssh -L 5432:localhost:5432 pico.ash.0"
46abbr -a code "llama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_XL -ngl 15 --host 0.0.0.0 --jinja --threads -1 --ctx-size 32000 --temp 0.7 --min-p 0.0 --top-p 0.80 --top-k 20 --repeat-penalty 1.05 --context-shift"
47abbr -a rackai "ANTHROPIC_BASE_URL=http://10.2.20.242:8080 ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY='' claude --dangerously-skip-permissions --model unsloth/Qwen3.6-27b"
48abbr -a miniai "ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic claude --dangerously-skip-permissions --model MiniMax-M2.7"
49abbr -a rackcode "ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY='' npx opencode-ai"
50abbr -a zmount zfs mount -a
51abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
52abbr -a mdfmt uvx --with=mdformat-gfm --with=mdformat-frontmatter --with=mdformat-gfm-alerts mdformat --wrap no
53abbr -a gemini npx @google/gemini-cli
54abbr -a amp npx @sourcegraph/amp
55abbr -a cai claude --dangerously-skip-permissions
56
57function pw
58  tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 16; echo
59end
60
61if type -q direnv
62  direnv hook fish | source
63end
64
65if type -q zmx
66  zmx completions fish | source
67end
68
69if type -q mise
70  mise activate fish | source
71end
72
73functions -c fish_prompt _original_fish_prompt 2>/dev/null
74
75function fish_prompt --description 'Prompt with zmx'
76  if set -q ZMX_SESSION
77    echo -n "[$ZMX_SESSION] "
78  end
79  _original_fish_prompt
80end