Fix some QOL

This commit is contained in:
Marco Thomas
2021-08-27 22:52:19 +02:00
parent ced03d8efb
commit f790409869
3 changed files with 15 additions and 9 deletions

View File

@@ -93,11 +93,17 @@ export HISTFILE="$HOME/.zsh_history"
export SAVEHIST=5000
# ============================== ssh-agent
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock
ssh-add
fi
function start_agent() {
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock
ssh-add
else
echo "Agent already running..."
fi
}
alias ssha=start_agent
# ============================== vi-Mode
bindkey -v