From 5c8148124a0ef6f187ac34debb88e5ecde83fb5e Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 13 Dec 2022 12:59:05 -0800 Subject: [PATCH] Remove ssh login notification from zsh-linux config --- zsh-linux/.config/zsh-linux/ssh-login.zsh | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 zsh-linux/.config/zsh-linux/ssh-login.zsh diff --git a/zsh-linux/.config/zsh-linux/ssh-login.zsh b/zsh-linux/.config/zsh-linux/ssh-login.zsh deleted file mode 100644 index 29f549f..0000000 --- a/zsh-linux/.config/zsh-linux/ssh-login.zsh +++ /dev/null @@ -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