Eric Bower
·
2025-09-14
config.fish
1fish_config theme choose "dracula"
2
3fish_add_path ~/.deno/bin ~/.yarn/bin ~/go/bin ~/.npm-packages/bin ~/bin /usr/local/go/bin ~/.cargo/bin ~/neovim/bin
4
5switch (uname)
6 case Darwin
7 fish_add_path /opt/homebrew/opt/node@20/bin
8 fish_add_path /opt/homebrew/bin
9 fish_add_path ~/.local/bin
10 case Linux
11 # set -xg OLLAMA_API_BASE "http://0.0.0.0:11434"
12 set -xg OPENAI_API_BASE "http://192.168.88.109:8080"
13 set -xg OPENAI_API_KEY ""
14 case '*'
15 # do things for other OSs
16end
17
18# remove fish greeting
19set -U fish_greeting
20set -xg LANG en_US.UTF-8
21set -xg EDITOR nvim
22set -xg VISUAL nvim
23set -xg GPG_TTY (tty)
24set -xg XDG_CONFIG_HOME ~/.config
25set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
26set -xg MDIR ~/mail
27
28abbr -a pushall "git remote | xargs -I R git push R"
29abbr -a scratch nvim ~/scratch.md
30abbr -a rcp rsync -avzu --progress
31abbr -a sway sway --unsupported-gpu
32abbr -a tre "tree -CF --dirsfirst -L2"
33abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
34abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
35abbr -a ash "autossh -M 0"
36abbr -a picodb "ssh -L 5432:localhost:5432 pico.ash.0"
37abbr -a gpt "llama-server -hf unsloth/gpt-oss-20b-GGUF:Q4_K_M -ngl 15 --host 0.0.0.0"
38abbr -a code "llama-server -hf openai/ggml-org_Qwen3-Coder-30B-A3B-Instruct-Q8_0-GGUF_qwen3-coder-30b-a3b-instruct-q8_0.gguf -ngl 15 --host 0.0.0.0"
39abbr -a adr "aider --model openai/ggml-org_Qwen3-Coder-30B-A3B-Instruct-Q8_0-GGUF_qwen3-coder-30b-a3b-instruct-q8_0.gguf --code-theme dracula"
40abbr -a zmount zfs mount -a
41abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
42abbr -a mdf uvx --with=mdformat-gfm --with=mdformat-frontmatter mdformat --wrap 80
43abbr -a sm sudo systemctl
44abbr -a smu systemctl --user
45abbr -a jm sudo journalctl
46abbr -a jmu journalctl --user
47
48function sys_fzf
49 systemctl --user list-unit-files --no-legend | fzf | awk '{print $1}'
50end
51
52function syst
53 systemctl --user status -l --no-pager (sys_fzf)
54end
55
56function sysc
57 systemctl --user cat --no-pager (sys_fzf)
58end
59
60function sysj
61 journalctl --user -u (sys_fzf)
62end
63
64if type -q direnv
65 direnv hook fish | source
66end