repos / dotfiles

my dotfiles

dotfiles / dot_config / fish
Eric Bower  ·  2025-11-03

config.fish

 1fish_config theme choose "dracula"
 2
 3fish_add_path ~/.local/bin /usr/local/go/bin ~/.cargo/bin ~/.yarn/bin ~/.npm-packages/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 OPENAI_API_BASE "http://192.168.88.109:8080"
12    set -xg OPENAI_API_KEY ""
13  case '*'
14    # do things for other OSs
15end
16
17# remove fish greeting
18set -U fish_greeting
19set -xg LANG en_US.UTF-8
20set -xg EDITOR nvim
21set -xg VISUAL nvim
22set -xg GPG_TTY (tty)
23set -xg XDG_CONFIG_HOME ~/.config
24set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
25set -xg MDIR ~/mail
26
27abbr -a pushall "git remote | xargs -I R git push R"
28abbr -a scratch nvim ~/scratch.md
29abbr -a rcp rsync -avzu --progress
30abbr -a sway sway --unsupported-gpu
31abbr -a tre "tree -CF --dirsfirst -L2"
32abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
33abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
34abbr -a ash "autossh -M 0"
35abbr -a picodb "ssh -L 5432:localhost:5432 pico.ash.0"
36abbr -a gpt "llama-server -hf unsloth/gpt-oss-20b-GGUF:Q4_K_M -ngl 15 --host 0.0.0.0"
37abbr -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"
38abbr -a zmount zfs mount -a
39abbr -a keys "keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source"
40abbr -a mdfmt uvx --with=mdformat-gfm --with=mdformat-frontmatter mdformat
41abbr -a sm sudo systemctl
42abbr -a smu systemctl --user
43abbr -a jm sudo journalctl
44abbr -a jmu journalctl --user
45
46function pw
47  tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 16; echo
48end
49
50function sys_fzf
51  systemctl --user list-unit-files --no-legend | fzf | awk '{print $1}'
52end
53
54function syst
55  systemctl --user status -l --no-pager (sys_fzf)
56end
57
58function sysc
59  systemctl --user cat --no-pager (sys_fzf)
60end
61
62function sysj
63  journalctl --user -u (sys_fzf)
64end
65
66if type -q direnv
67  direnv hook fish | source
68end