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
|
#!/bin/bash
|
||||||
|
|
||||||
echo "installing dotfiles"
|
echo "Installing dotfiles"
|
||||||
|
|
||||||
echo "initializing submodule(s)"
|
echo "Initializing submodule(s)"
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
source install/link.sh
|
source install/link.sh
|
||||||
|
|
||||||
if [ "$(uname)" == "Darwin" ]; then
|
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)"
|
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
|
source scripts/brew.sh
|
||||||
|
|
||||||
echo "updating OSX settings"
|
echo "Updating OSX settings"
|
||||||
source scripts/osx.sh
|
source scripts/osx.sh
|
||||||
|
|
||||||
echo "installing node (from nvm)"
|
echo "Installing node (from nvm)"
|
||||||
nvm install stable
|
nvm install stable
|
||||||
nvm alias default 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
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo "configuring zsh as default shell"
|
echo "Configuring zsh as default shell"
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
|
|
||||||
|
echo "Done."
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# give me what I need, brew!
|
|
||||||
|
|
||||||
# cli tools
|
# cli tools
|
||||||
brew install ack
|
brew install ack
|
||||||
@@ -20,7 +19,4 @@ brew install zsh
|
|||||||
brew install highlight
|
brew install highlight
|
||||||
brew install nvm
|
brew install nvm
|
||||||
brew install z
|
brew install z
|
||||||
|
brew instal markdown
|
||||||
# gitsh
|
|
||||||
brew tap thoughtbot/formulae
|
|
||||||
brew install gitsh
|
|
||||||
|
|||||||
Reference in New Issue
Block a user