diff --git a/configure.sh b/configure.sh index 219b06c4..7d891806 100755 --- a/configure.sh +++ b/configure.sh @@ -1,13 +1,19 @@ #!/bin/bash -# Update pkg lists +# Update pkg lists echo "Updating package lists..." sudo apt-get update + # zsh install +which zsh > /dev/null 2>&1 +if [[ $? -eq 0 ]] ; then echo '' -echo "Now installing zsh..." +echo "zsh already installed..." +else +echo "zsh not found, now installing zsh..." echo '' sudo apt install zsh -y +fi # Installing git completion echo '' @@ -25,10 +31,25 @@ if ! curl "$URL" --silent --output "$HOME/.git-completion.bash"; then fi # oh-my-zsh install -echo '' -echo "Now installing oh-my-zsh..." +if [ -d ~/.oh-my-zsh/ ] ; then +echo '' +echo "oh-my-zsh is already installed..." +read -p "Would you like to update oh-my-zsh now?" -n 1 -r +echo '' + if [[ $REPLY =~ ^[Yy]$ ]] ; then + cd ~/.oh-my-zsh && git pull + if [[ $? -eq 0 ]] + then + echo "Update complete..." && cd + else + echo "Update not complete..." >&2 cd + fi + fi +else +echo "oh-my-zsh not found, now installing oh-my-zsh..." echo '' sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +fi # oh-my-zsh plugin install echo '' @@ -138,6 +159,7 @@ then sudo tee /etc/apt/sources.list.d/azure-cli.list sudo apt-key adv --keyserver packages.microsoft.com --recv-keys 52E16F86FEE04B979B07E28DB02C46DF417A0893 + sudo curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - sudo apt-get install apt-transport-https sudo apt-get update && sudo apt-get install azure-cli @@ -170,4 +192,4 @@ else fi echo '' -echo ' Badass WSL terminal installed! Please reboot your computer for changes to be made.' +echo ' Badass WSL terminal installed! Please reboot your computer for changes to be made.' \ No newline at end of file diff --git a/git/gitconfig.symlink b/git/gitconfig.symlink index 1a68754e..c5f8ec77 100644 --- a/git/gitconfig.symlink +++ b/git/gitconfig.symlink @@ -30,7 +30,4 @@ # for more information on different options of the below setting. # # Setting to git 2.0 default to suppress warning message - default = simple -[user] - name = jldeen - email = jessde@microsoft.com + default = simple \ No newline at end of file diff --git a/script/bootstrap b/script/bootstrap index f056e02d..4143a97e 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -33,9 +33,9 @@ setup_gitconfig () { info 'setup gitconfig' git_credential='cache' - if [ "$(uname -s)" == "Darwin" ] + if [ "$(uname -s)" == "Linux" ] then - git_credential='osxkeychain' + git_credential='credential.helper' fi user ' - What is your github author name?'