diff options
| author | Raymaekers Luca <luca@spacehb.net> | 2025-10-16 11:19:43 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-10-16 11:19:43 +0200 |
| commit | 5eb23bd0b1d6536a22257eaa2cce3e1a7634873a (patch) | |
| tree | 6b07310504a7a493c6ab5429408d6e430497d9a2 /config/essentials | |
| parent | 7077a2eddb7015e3d79959e54acc8a0c4f2604ad (diff) | |
checkpoint
Diffstat (limited to 'config/essentials')
| -rw-r--r-- | config/essentials/shell/functions.sh | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index f0ee134..2962d2c 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -375,20 +375,21 @@ then # Wrapper to automatically add the key # could have been alias='SSH_ASKPASS=askpass SSH_ASKPASS_REQUIRE=prefer ssh' # but this option is very slow for some reason - ssh() { - for arg in $@; do - if grep "Host $arg\s*\$" ~/.ssh/config > /dev/null 2>&1 ; - then - # Disable notification by unsetting the DISPLAY varibles - keyadd "$arg" 2> /dev/null - break - fi - done - /usr/bin/ssh $@ + ssh() + { + for arg in $@; do + if grep "Host $arg\s*\$" ~/.ssh/config > /dev/null 2>&1 ; + then + Logging=0 keyadd "$arg" + break + fi + done + /usr/bin/ssh $@ } fi -ssl_req() { +ssl_req() +{ [ "$1" ] || return 1 [ "$2" ] || return 2 openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out "$1" -keyout "$2" |
