From 42ea52839a4d4b20efffc3267dc9d80b82bd3a81 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 14 May 2025 05:38:36 +0200 Subject: checkpoint --- config/essentials/shell/functions.sh | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'config/essentials/shell/functions.sh') diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 50ee0aa..7c8c777 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -366,20 +366,23 @@ edit_git_file () { $EDITOR "$1"/"$f" } -# 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 $@ -} +if false +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 $@ + } +fi ssl_req() { [ "$1" ] || return 1 -- cgit v1.2.3-70-g09d2