dotfiles/.config/fish/config.fish

14 lines
377 B
Fish
Raw Normal View History

2023-11-25 01:34:13 -05:00
if status is-interactive
# Commands to run in interactive sessions can go here
set -gx EDITOR nvim
set -gx VISUAL nvim
set -gx TERMINAL st
if not pgrep -u "$USER" ssh-agent > /dev/null;
ssh-agent -c > "$XDG_RUNTIME_DIR/ssh-agent.env"
end
if [ -z $SSH_AUTH_SOCK ]
eval "$(cat $XDG_RUNTIME_DIR/ssh-agent.env)" > /dev/null
end
end