From 8ce31af3a58c50f0955200b1a7b892e89ad4a6fc Mon Sep 17 00:00:00 2001 From: ta-yuhyeon Date: Wed, 21 Aug 2024 21:50:26 +0200 Subject: [PATCH] added things --- files/zshrc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/files/zshrc b/files/zshrc index 69793b8..1201321 100644 --- a/files/zshrc +++ b/files/zshrc @@ -258,5 +258,13 @@ if [ -f /etc/zsh_command_not_found ]; then . /etc/zsh_command_not_found fi -export PATH="$PATH:/opt/homebrew/bin" -ssh-add +if [ -d "/Users" ]; then + export PATH="$PATH:/opt/homebrew/bin" + echo "La cartella esiste." +fi +if ssh-add -l >/dev/null 2>&1; then + echo "Chiavi SSH sono giĆ  aggiunte all'agente." +else + echo "Nessuna chiave SSH aggiunta. Aggiungendo una chiave..." + ssh-add +fi