50f1fe2 dotfiles / dot_config / fish / config.fish
Eric Bower  ·  2026-04-27
 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
18    if command -v sdxcli &>/dev/null
19        eval (sdxcli output-shell-commands --shell fish)
20    end
21  case Linux
22    fish_config theme choose "tomorrow-night-bright"
23  case '*'
24    # do things for other OSs
25end
26
27set -U fish_greeting # remove fish greeting
28set -xg LANG en_US.UTF-8
29set -xg EDITOR kak
30set -xg VISUAL kak
31set -xg GPG_TTY (tty)
32set -xg XDG_CONFIG_HOME ~/.config
33set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
34set -xg MDIR ~/mail
35set -xg COLORTERM truecolor
36
37abbr -a pushall "git remote | xargs -I R git push R"
38abbr -a rcp rsync -avzu --progress
39abbr -a sway sway --unsupported-gpu
40abbr -a tre "tree -CF --dirsfirst -L2"
41abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
42abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
43abbr -a ash "autossh -M 0 -q"
44abbr -a picodb "ssh -L 5432:localhost:5432 pico.ash.0"
45abbr -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"
46abbr -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"
47abbr -a miniai "ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic claude --dangerously-skip-permissions --model MiniMax-M2.7"
48abbr -a rackcode "ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY='' npx opencode-ai"
49abbr -a zmount zfs mount -a
50abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
51abbr -a mdfmt uvx --with=mdformat-gfm --with=mdformat-frontmatter --with=mdformat-gfm-alerts mdformat --wrap no
52abbr -a gemini npx @google/gemini-cli
53abbr -a amp npx @sourcegraph/amp
54abbr -a cai claude --dangerously-skip-permissions
55
56function pw
57  tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 16; echo
58end
59
60if type -q direnv
61  direnv hook fish | source
62end
63
64if type -q zmx
65  zmx completions fish | source
66end
67
68if type -q mise
69  mise activate fish | source
70end
71
72functions -c fish_prompt _original_fish_prompt 2>/dev/null
73
74function fish_prompt --description 'Prompt with zmx'
75  if set -q ZMX_SESSION
76    echo -n "[$ZMX_SESSION] "
77  end
78  _original_fish_prompt
79end