Skip to content

Commit

Permalink
Merge pull request #9 from jldeen/wsl-merge
Browse files Browse the repository at this point in the history
Wsl merge
  • Loading branch information
jldeen authored May 30, 2018
2 parents 8685ba8 + 424a149 commit 4cd3bcc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
32 changes: 27 additions & 5 deletions configure.sh
Original file line number Diff line number Diff line change
@@ -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 ''
Expand All @@ -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 ''
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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.'
5 changes: 1 addition & 4 deletions git/gitconfig.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [email protected]
default = simple
4 changes: 2 additions & 2 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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?'
Expand Down

0 comments on commit 4cd3bcc

Please sign in to comment.