|
|
@ -1,5 +1,7 @@ |
|
|
|
#!/bin/bash |
|
|
|
#!/bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -eux |
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -d ~/.common-configs ]]; then |
|
|
|
if [[ ! -d ~/.common-configs ]]; then |
|
|
|
git clone https://github.com/programmablereya/common-configs.git ~/.common-configs |
|
|
|
git clone https://github.com/programmablereya/common-configs.git ~/.common-configs |
|
|
|
cd ~/.common-configs |
|
|
|
cd ~/.common-configs |
|
|
@ -13,8 +15,8 @@ source ./bash_aliases.sh |
|
|
|
./install.sh |
|
|
|
./install.sh |
|
|
|
|
|
|
|
|
|
|
|
if [[ ! -f ~/.ssh/id_ed25519.pub ]]; then |
|
|
|
if [[ ! -f ~/.ssh/id_ed25519.pub ]]; then |
|
|
|
ssh-keygen |
|
|
|
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 |
|
|
|
|
|
|
|
|
|
|
|
ssh-authorize-key ~/.ssh/id_ed25519.pub |
|
|
|
ssh-authorize-key ~/.ssh/id_ed25519.pub |
|
|
|
|
|
|
|
|
|
|
|
echo "*** New keypair generated. Please add the new public key to github/bitbucket authorized keys:" |
|
|
|
echo "*** New keypair generated. Please add the new public key to github/bitbucket authorized keys:" |
|
|
|