Configuration for my NixOS based systems and Home Manager
1set -x EDITOR 'nvim'
2set -x VISUAL 'nvim'
3set -x LPASS_CLIPBOARD_COMMAND wl-copy
4set -x MOZ_ENABLE_WAYLAND 1
5set -x LS_OPTIONS "--color=auto"
6set -x LESS '-F -g -i -M -R -S -w -X -z-4'
7
8#alias artiq "conda activate artiq"
9if type -q "multipass"
10 alias mp "multipass"
11end
12abbr gp "git pull --rebase"
13abbr gu "git push"
14abbr gc "git commit"
15abbr gs "git status"
16abbr gb "git branch"
17abbr gd "git diff"
18abbr ga "git add"
19abbr glog "git log –graph –decorate –oneline –all"
20
21if test -d "~/repos"
22 alias r "cd ~/repos"
23end
24
25# We start the ssh-agent in noah-home.nix, so we'll add the socket to the environment
26set -Ux SSH_AUTH_SOCK /var/run/user/(id -u)/ssh-agent
27
28# PATH stuff
29
30if type -q "direnv"
31 direnv hook fish | source
32 set -g direnv_fish_mode eval_on_arrow
33end
34
35if type -q "kitty"
36 alias icat="kitty +kitten icat"
37 alias d="kitty +kitten diff"
38end
39
40# NATS config
41set -Ux NATS_URL tls://misaki.local
42set -Ux NATS_CA /srv/nats/minica.pem
43set -Ux NATS_CERT /srv/nats/misaki.packetlost.dev/cert.pem
44set -Ux NATS_KEY /srv/nats/misaki.packetlost.dev/key.pem
45
46
47# Keybindings
48fish_default_key_bindings