Fix some QOL
This commit is contained in:
16
files/.zshrc
16
files/.zshrc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user