New script template

This commit is contained in:
Nathaniel Landau
2015-01-07 22:59:39 -05:00
parent 5ff40a206c
commit 238f27e581
15 changed files with 543 additions and 259 deletions

View File

@@ -9,19 +9,19 @@ else
exit
fi
e_header "Running : SSH CONFIG"
header "Running : SSH CONFIG"
e_success "Checking for SSH key in ~/.ssh/id_rsa.pub, generating one if it doesn't exist ..."
success "Checking for SSH key in ~/.ssh/id_rsa.pub, generating one if it doesn't exist ..."
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
e_success "Copying public key to clipboard."
success "Copying public key to clipboard."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
# Add SSH keys to Github
e_header "Github integration"
header "Github integration"
seek_confirmation "Open https://github.com/account/ssh in your browser?"
if is_confirmed; then
e_success "Copying public key to clipboard."
success "Copying public key to clipboard."
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | pbcopy
@@ -29,9 +29,9 @@ if is_confirmed; then
seek_confirmation "Test Github Authentication via ssh?"
if is_confirmed; then
printf "\n Testing..."
notice "Testing..."
ssh -T git@github.com
fi
fi
e_header "Completed : SSH CONFIG"
header "Completed : SSH CONFIG"