source ~/.config/fish/functions/key-bindings.fish fzf_key_bindings # Shortcuts abbr g git abbr z zathura abbr v nvim alias dot="git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME" # Variables set -x TERMINAL kitty set -x VISUAL nvim set -x READER zathura set -x NNN_BMS 'd:~/Downloads;h:~/;w:~/workspace;i:~/images;f:~/documents;t:/tmp;/:/' set -x NNN_USE_EDITOR 1 set -x EDITOR nvim set -x BROWSER firefox-wayland #set -x fish_key_bindings fish_vi_key_bindings set -x fish_greeting "" set -gx FZF_DEFAULT_COMMAND fd . function fish_user_key_bindings # vi bindings, but also allow emacs bindings in insert mode fish_default_key_bindings -M insert fish_vi_key_bindings --no-erase insert end # Ensure that GPG Agent is used as the SSH agent set -e SSH_AUTH_SOCK set -U -x SSH_AUTH_SOCK (gpgconf --list-dirs agent-ssh-socket) set -x GPG_TTY (tty) gpg-connect-agent updatestartuptty /bye >/dev/null direnv hook fish | source if test $TERM != "screen-256color" tmux attach-session -t $USER || tmux new-session -s $USER end