Eric Bower
·
2025-01-27
config.fish
1fish_config theme choose "dracula"
2
3fish_add_path ~/.deno/bin ~/.yarn/bin ~/go/bin ~/.npm-packages/bin ~/bin
4
5switch (uname)
6 case Darwin
7 fish_add_path /opt/homebrew/opt/node@18/bin
8 fish_add_path /opt/homebrew/bin
9 # fish_add_path /usr/local/sbin
10 abbr -a aptible-login "aptible login --lifetime 7days --email eric.bower@aptible.com"
11 case Linux
12 if status --is-interactive
13 keychain --eval --quiet --agents ssh,gpg ~/.ssh/id_ed25519 76D3FD02 | source
14 end
15 case '*'
16 # do things for other OSs
17end
18
19# remove fish greeting
20set -U fish_greeting
21set -xg LANG en_US.UTF-8
22set -xg EDITOR nvim
23set -xg VISUAL nvim
24set -xg GPG_TTY (tty)
25set -xg XDG_CONFIG_HOME ~/.config
26set -xg VDIRSYNCER_CONFIG ~/.config/vdirsyncer/config
27set -xg MDIR ~/mail
28
29abbr -a gu git remote update --prune
30abbr -a ga git add -A
31abbr -a gm git commit -S
32abbr -a gs git commit -S --amend --no-edit
33abbr -a gl git --no-pager log --oneline -n 15
34abbr -a gt git log --graph --oneline --all
35abbr -a pushall "git remote | xargs -I R git push R"
36abbr -a tmux tmux -u
37abbr -a scratch nvim ~/scratch.md
38abbr -a bcp rsync -avzu --progress
39abbr -a weather curl wttr.in/Ann+Arbor+Michigan
40abbr -a img img2sixel
41abbr -a sway sway --unsupported-gpu
42abbr -a notes nvim -c '"cd ~/dotfiles/notes"' ~/dotfiles/notes
43abbr -a tre "eza --tree --color=always | less -R"
44abbr -a pp PA_DIR=/home/erock/dev/pico/pico-pass pa
45abbr -a logs "ssh pipe sub /pico/log-drain -k | jq -r"
46
47if type -q direnv
48 direnv hook fish | source
49end