Configuration for my NixOS based systems and Home Manager
at master 60 lines 1.5 kB view raw
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" 20if type -q "emanote" 21 abbr n "cd ~/repos/notes" 22 abbr ne "cd ~/repos/notes; nvim" 23end 24 25abbr srhtclone "git clone git@git.sr.ht:~chiefnoah/" 26abbr ghclone "git clone git@github.com:chiefnoah/" 27 28if test -d "~/repos" 29 alias r "cd ~/repos" 30end 31 32set -Ux SSH_AUTH_SOCK /var/run/user/(id -u)/ssh-agent 33# PATH stuff 34 35if test -z "(pgrep ssh-agent)" 36 eval (ssh-agent -c) > /dev/null # no output 37 set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK 38 set -Ux SSH_AGENT_PID $SSH_AGENT_PID 39 set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK 40end 41 42# Run ssh-agent 43if type -q "direnv" 44 direnv hook fish | source 45 set -g direnv_fish_mode eval_on_arrow 46end 47 48if type -q "kitty" 49 alias icat="kitty +kitten icat" 50 alias d="kitty +kitten diff" 51end 52 53# NATS config 54set -Ux NATS_URL tls://misaki.local 55set -Ux NATS_CA /srv/nats/minica.pem 56set -Ux NATS_CERT /srv/nats/touma-nixos@packetlost.dev/cert.pem 57set -Ux NATS_KEY /srv/nats/touma-nixos@packetlost.dev/key.pem 58 59# Keybindings 60fish_default_key_bindings