set -x EDITOR 'nvim' set -x VISUAL 'nvim' set -x LPASS_CLIPBOARD_COMMAND wl-copy set -x MOZ_ENABLE_WAYLAND 1 set -x LS_OPTIONS "--color=auto" set -x LESS '-F -g -i -M -R -S -w -X -z-4' #alias artiq "conda activate artiq" if type -q "multipass" alias mp "multipass" end abbr gp "git pull --rebase" abbr gu "git push" abbr gc "git commit" abbr gs "git status" abbr gb "git branch" abbr gd "git diff" abbr ga "git add" abbr glog "git log –graph –decorate –oneline –all" if type -q "emanote" abbr n "cd ~/repos/notes" abbr ne "cd ~/repos/notes; nvim" end abbr srhtclone "git clone git@git.sr.ht:~chiefnoah/" abbr ghclone "git clone git@github.com:chiefnoah/" if test -d "~/repos" alias r "cd ~/repos" end set -Ux SSH_AUTH_SOCK /var/run/user/(id -u)/ssh-agent # PATH stuff if test -z "(pgrep ssh-agent)" eval (ssh-agent -c) > /dev/null # no output set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK set -Ux SSH_AGENT_PID $SSH_AGENT_PID set -Ux SSH_AUTH_SOCK $SSH_AUTH_SOCK end # Run ssh-agent if type -q "direnv" direnv hook fish | source set -g direnv_fish_mode eval_on_arrow end if type -q "kitty" alias icat="kitty +kitten icat" alias d="kitty +kitten diff" end # NATS config set -Ux NATS_URL tls://misaki.local set -Ux NATS_CA /srv/nats/minica.pem set -Ux NATS_CERT /srv/nats/touma-nixos@packetlost.dev/cert.pem set -Ux NATS_KEY /srv/nats/touma-nixos@packetlost.dev/key.pem # Keybindings fish_default_key_bindings