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

@@ -22,11 +22,17 @@ alias cp='cp -i' # ask before removal
alias mv='mv -i' # ask before removal
# ============================== SSH-Agent
if ! [ -S /tmp/mthomas-agent.sock ]; then
echo "Starting ssh-agent"
ssh-agent -a /tmp/mthomas-agent.sock
ssh-add
fi
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=agent
# ============================== vi-Mode
set -o vi