update install script
* remove unused items * update to symlink the nginx configuration * install markdown from homebrew
This commit is contained in:
25
install.sh
25
install.sh
@@ -1,29 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "installing dotfiles"
|
||||
echo "Installing dotfiles"
|
||||
|
||||
echo "initializing submodule(s)"
|
||||
echo "Initializing submodule(s)"
|
||||
git submodule update --init --recursive
|
||||
|
||||
source install/link.sh
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
echo "running on OSX"
|
||||
echo "Running on OSX"
|
||||
|
||||
echo "installing homebrew"
|
||||
echo "Installing homebrew"
|
||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||
|
||||
echo "brewing all the things"
|
||||
echo "Brewing all the things"
|
||||
source scripts/brew.sh
|
||||
|
||||
echo "updating OSX settings"
|
||||
echo "Updating OSX settings"
|
||||
source scripts/osx.sh
|
||||
|
||||
echo "installing node (from nvm)"
|
||||
echo "Installing node (from nvm)"
|
||||
nvm install stable
|
||||
nvm alias default stable
|
||||
|
||||
echo "Configuring nginx"
|
||||
# create a backup of the original nginx.conf
|
||||
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.original
|
||||
ln -s nginx/nginx.conf /usr/local/etc/nginx/nginx.conf
|
||||
# symlink the code.dev from dotfiles
|
||||
ln -s nginx/code.dev /usr/local/etc/nginx/sites-enabled/code.dev
|
||||
fi
|
||||
|
||||
|
||||
echo "configuring zsh as default shell"
|
||||
echo "Configuring zsh as default shell"
|
||||
chsh -s $(which zsh)
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user