ssh-agent and tmux shortcuts

This commit is contained in:
Simonas Narbutas
2018-07-24 17:44:15 +02:00
parent 2d0836e99b
commit 776796735f
2 changed files with 4 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# bind tmux cmds to ctrl+a
unbind C-b
set -g prefix C-z
set -g prefix C-s
# activity monitoring
setw -g monitor-activity on

View File

@@ -141,6 +141,9 @@ for f in ~/.zsh.d/*.zsh; do
source "$f"
done
if [[ $(pidof ssh-agent |wc -w) == 0 ]]; then
ssh-agent -s > ~/.ssh/agent
fi
eval "$(<~/.ssh/agent)"
# The next line updates PATH for the Google Cloud SDK.
if [ -f /opt/google-cloud-sdk/path.zsh.inc ]; then