dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit c17724bfb15dc4b735a55cd929babf36a0662de2
parent d8f3233e32eda3cccd2d3c07080f2ae5fd214be6
Author: Paco Esteban <paco@onna.be>
Date:   Sat,  7 Jul 2018 16:23:43 +0200

simple ssh agent config

Diffstat:
zsh/.zshrc | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -39,6 +39,14 @@ bindkey -M vicmd V edit-command-line bindkey '^P' up-history bindkey '^N' down-history +# ssh-gent +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > "$HOME/.ssh-agent-thing" +fi +if [[ "$SSH_AGENT_PID" == "" ]]; then + eval "$(<~/.ssh-agent-thing)" +fi + [ -f $HOME/.zshenv.local ] && source $HOME/.zshenv.local source $HOME/.zsh/includes.zsh source $HOME/.zsh/aliases.zsh