Created
December 8, 2024 22:38
-
-
Save henriquehorbovyi/3b4d52054802e9997859b52c765c7692 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
clear | |
echo "Select the workspace type:" | |
echo "1. Personal" | |
echo "2. Professional" | |
while read -p "> " option | |
do | |
if [ $option -eq 1 ]; then | |
ssh-add -D | |
ssh-add --apple-use-keychain ~/.ssh/personal_github_key | |
break | |
elif [ $option -eq 2 ]; then | |
ssh-add -D | |
ssh-add --apple-use-keychain ~/.ssh/id_rsa | |
break | |
else | |
echo "no op... (*.*(" | |
break | |
fi | |
done | |
echo "\nSwitched successfully ✅ 💻" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment