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:
parent
ae58ae07a6
commit
085fc373b2
|
@ -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
|
Loading…
Reference in New Issue