Remove ssh login notification from zsh-linux config

This commit is contained in:
Eric Torres 2022-12-13 12:59:05 -08:00
parent 375d0f19a8
commit 5c8148124a

View File

@ -1,8 +0,0 @@
# Notify on ssh login
if [[ -n $SSH_CONNECTION ]]; then
IP="$(echo $SSH_CONNECTION | cut -d " " -f 1)"
HOSTNAME=$(hostname)
NOW=$(date +"%e %b %Y, %a %r")
EMAIL='erictorres4@pm.me'
echo "Login from ${IP} on ${HOSTNAME} on ${NOW}" | neomutt -s 'SSH Login Notification' "${EMAIL}" 2>/dev/null
fi