Skip to content

Instantly share code, notes, and snippets.

@henriquehorbovyi
Created December 8, 2024 22:38
Show Gist options
  • Save henriquehorbovyi/3b4d52054802e9997859b52c765c7692 to your computer and use it in GitHub Desktop.
Save henriquehorbovyi/3b4d52054802e9997859b52c765c7692 to your computer and use it in GitHub Desktop.
#!/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