Last active
October 3, 2019 13:53
-
-
Save strokirk/0ffed909a90e8189fa86432b1df4df25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install xcode command line tools, required by brew and pyenv | |
| echo "Performing xcode installation. A prompt will open." | |
| echo 'NOTE: You must select "install", the right-most alternative!' | |
| xcode-select --install | |
| echo | |
| echo | |
| if [ ! -f ~/.ssh/id_rsa.pub ]; then | |
| echo "Creating a SSH key you can use with Github" | |
| echo "See: https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent" | |
| echo "See: https://help.github.com/en/articles/adding-a-new-ssh-key-to-your-github-account" | |
| echo | |
| echo -n "Email associated with the SSH key: " | |
| read SSH_EMAIL | |
| ssh-keygen -t rsa -b 4096 -C "$SSH_EMAIL" | |
| fi | |
| echo "Copying SSH key to clipboard..." | |
| pbcopy < ~/.ssh/id_rsa.pub | |
| echo | |
| echo "Opening Github.com so you can paste the public key." | |
| open https://github.com/settings/ssh/new | |
| echo "Press ENTER when done." | |
| read | |
| echo | |
| echo | |
| CODE_DIR=~/code | |
| echo "Where do you want your project directory?" | |
| echo "(default: $CODE_DIR)" | |
| read code_dir | |
| if [ ! -z $code_dir ]; then CODE_DIR=$code_dir; fi | |
| mkdir -p $CODE_DIR && cd $CODE_DIR && git clone [email protected]:kundo/kundo-workstation && cd kundo-workstation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment