X-Git-Url: https://apps.delaporte.us/gitweb/dotfiles.git/blobdiff_plain/dc64bcd953b738e3e3ab81aec50fdef1da989fe1..583b960ef78bba2304bd3ac937e5d67456f80fd4:/setup_cli_basics.sh diff --git a/setup_cli_basics.sh b/setup_cli_basics.sh index b137b47..10bb145 100755 --- a/setup_cli_basics.sh +++ b/setup_cli_basics.sh @@ -3,11 +3,6 @@ if [ ! -d ~/dotfiles ]; then cd ~; git clone git@github.com:edthedev/dotfiles.git fi -if [ ! -f ~/.ssh/id_rsa ]; then - echo "************** Generate an SSH key" - ssh-keygen -fi - if [ ! -f ~/.screenrc ]; then echo "************** Setup Screen" ln -s ~/dotfiles/screenrc ~/.screenrc @@ -29,6 +24,12 @@ if [ -f ~/.gitconfig ]; then git config --global user.name "Edward Delaporte" fi -echo "************** Reminder to setup GitHub key" -cat GitHubKey.md -cat ~/.ssh/id_rsa.pub +if [ ! -f ~/.ssh/id_rsa ]; then + echo "************** Generate an SSH key" + ssh-keygen + + echo "************** Reminder to setup GitHub key" + cat GitHubKey.md + cat ~/.ssh/id_rsa.pub +fi +