Eric Bower
·
2026-03-07
config.fish
1fish_add_path ~/.local/bin /usr/local/go/bin ~/.cargo/bin ~/.yarn/bin ~/.npm-packages/bin
2
3switch (uname)
4 case Darwin
5 fish_config theme choose "Tomorrow Night Bright"
6 fish_add_path /opt/homebrew/opt/node@20/bin
7 fish_add_path /opt/homebrew/bin
8 fish_add_path /opt/homebrew/opt/libpq/bin
9
10 set -xg AWS_PROFILE "prod-PowerUserAccess"
11 set -xg CLAUDE_CODE_USE_BEDROCK "1"
12 set -xg AWS_REGION "us-east-1"
13
14 if command -v sdxcli &>/dev/null
15 eval (sdxcli output-shell-commands --shell fish)
16 end
17 case Linux
18 fish_config theme choose "tomorrow-night-bright"
19 case '*'
20 # do things for other OSs
21end
22
23set -U fish_greeting # remove fish greeting
24set -xg LANG en_US.UTF-8
25set -xg EDITOR kak
26set -xg VISUAL kak
27set -xg GPG_TTY (tty)
28set -xg XDG_CONFIG_HOME ~/.config
29set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
30set -xg MDIR ~/mail
31set -xg COLORTERM truecolor
32
33abbr -a pushall "git remote | xargs -I R git push R"
34abbr -a rcp rsync -avzu --progress
35abbr -a sway sway --unsupported-gpu
36abbr -a tre "tree -CF --dirsfirst -L2"
37abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
38abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
39abbr -a ash "autossh -M 0 -q"
40abbr -a picodb "ssh -L 5432:localhost:5432 pico.ash.0"
41abbr -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"
42abbr -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.5-35B-A3B"
43abbr -a rackcode "ANTHROPIC_AUTH_TOKEN=ollama ANTHROPIC_API_KEY='' npx opencode-ai"
44abbr -a zmount zfs mount -a
45abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
46abbr -a mdfmt uvx --with=mdformat-gfm --with=mdformat-frontmatter --with=mdformat-gfm-alerts mdformat --wrap no
47abbr -a gemini npx @google/gemini-cli
48abbr -a amp npx @sourcegraph/amp
49
50function pw
51 tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 16; echo
52end
53
54if type -q direnv
55 direnv hook fish | source
56end
57
58if type -q zmx
59 zmx completions fish | source
60end
61
62functions -c fish_prompt _original_fish_prompt 2>/dev/null
63
64function fish_prompt --description 'Prompt with zmx'
65 if set -q ZMX_SESSION
66 echo -n "[$ZMX_SESSION] "
67 end
68 _original_fish_prompt
69end