Add terminal script

This commit is contained in:
Marco Thomas
2021-08-29 12:48:49 +02:00
parent 056fa8178d
commit 9bb07b87c7
6 changed files with 39 additions and 35 deletions

View File

@@ -93,17 +93,11 @@ export HISTFILE="$HOME/.zsh_history"
export SAVEHIST=5000
# ============================== ssh-agent
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
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock
ssh-add
fi
# ============================== vi-Mode
bindkey -v