Eric Bower
·
2025-10-17
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 ~/.local/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 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"
39abbr -a zmount zfs mount -a
40abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
41abbr -a mdfmt uvx --with=mdformat-gfm --with=mdformat-frontmatter mdformat
42abbr -a sm sudo systemctl
43abbr -a smu systemctl --user
44abbr -a jm sudo journalctl
45abbr -a jmu journalctl --user
46
47function sys_fzf
48 systemctl --user list-unit-files --no-legend | fzf | awk '{print $1}'
49end
50
51function syst
52 systemctl --user status -l --no-pager (sys_fzf)
53end
54
55function sysc
56 systemctl --user cat --no-pager (sys_fzf)
57end
58
59function sysj
60 journalctl --user -u (sys_fzf)
61end
62
63if type -q direnv
64 direnv hook fish | source
65end