cachekeys function

This commit is contained in:
Christoph J. Scherr 2023-08-04 12:23:11 +02:00
parent 8212bd1e12
commit e889e5cc01
Signed by: cscherrNT
GPG Key ID: 8E2B45BC51A27EA7
1 changed files with 4 additions and 4 deletions

View File

@ -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