From e889e5cc01bd5c20af8c8a3fe844b695c5c66981 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Fri, 4 Aug 2023 12:23:11 +0200 Subject: [PATCH] cachekeys function --- home/.zsh/zshrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 939ca60..dd1c650 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -36,6 +36,10 @@ alias gls=/bin/ls function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } function midfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(M|G|T|P|E)\s" } function smallfiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(B|K)\s" } +function cachekeys () { exec 2>/dev/null; + eval $(ssh-agent) + ssh-add ~/.ssh/id_rsa +} ### ZSH HOME export ZSH=$HOME/.zsh @@ -142,10 +146,6 @@ export FZF_CTRL_R_OPTS='--no-sort --exact' source ~/.local/share/nnn/quitcd/quitcd.bash_zsh export NNN_PLUG='j:jump;z:autojump;' -### --- ssh-agent setup ------------------------------------ -eval $(ssh-agent) -ssh-add ~/.ssh/id_rsa - ### --- kitty Config ------------------------------------ # $KITTY_TERM is a custom envar I set in the kitty conf # this stuff does not work nicely with tmux, just make them regular aliases. Shows an error if you use them in another terminal