add-ssh-keys: make some improvements in adding keys

Note: this is not needed for GUI users unless
you messed up with your keyrings again

Signed-off-by: Andrei Jiroh Eugenio Halili <andreijiroh@madebythepins.tk>
This commit is contained in:
Andrei Jiroh Eugenio Halili 2021-02-27 22:28:46 +08:00
parent ae58ae07a6
commit 085fc373b2
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
1 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
#!/usr/bin/env bash
ssh-add $HOME/.ssh/github-personal
if [[ $@ != "" ]]; then
echo "==> Adding your SSH key..."
ssh-add $HOME/.ssh/$@
elif [[ $@ == "" ]]; then
echo "==> Adding all of your SSH keys..."
ssh-add ~/.ssh/github-personal
ssh-add ~/.ssh/launchpad
else
fi