diff --git a/.functions.sh b/.functions.sh index 0a7c5b5..d1d0a66 100644 --- a/.functions.sh +++ b/.functions.sh @@ -85,3 +85,19 @@ function ww(){ ;; esac } + +function ssh(){ + for arg in "$@" + do + case "$arg" in + -A) + read -t 5 -n 1 -s -r -p "Consider to use -o ProxyJump instead! Press 'y' to continue with -A" answer + printf "\n" + if [[ "${answer,,}" != "y" ]]; then + return 1 + fi + esac + done + /usr/bin/ssh "$@" +} +