reorganise installation script
This commit is contained in:
28
install.sh
28
install.sh
@@ -5,29 +5,17 @@ echo "Installing dotfiles"
|
||||
echo "Initializing submodule(s)"
|
||||
git submodule update --init --recursive
|
||||
|
||||
source install/link.sh
|
||||
if apropos "package manager" | grep -q apt; then
|
||||
echo -e "\n\nUsing APT package manager"
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
echo -e "\n\nRunning on OSX"
|
||||
|
||||
source install/brew.sh
|
||||
|
||||
source install/osx.sh
|
||||
|
||||
source install/nvm.sh
|
||||
|
||||
# create a backup of the original nginx.conf
|
||||
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.original
|
||||
ln -s ~/.dotfiles/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf
|
||||
# symlink the code.dev from dotfiles
|
||||
ln -s ~/.dotfiles/nginx/code.dev /usr/local/etc/nginx/sites-enabled/code.dev
|
||||
source install/apt.sh
|
||||
fi
|
||||
|
||||
echo "creating vim directories"
|
||||
mkdir -p ~/.vim-tmp
|
||||
source install/terminfo.sh
|
||||
source install/ruby.sh
|
||||
source install/link.sh
|
||||
|
||||
|
||||
echo "Configuring zsh as default shell"
|
||||
chsh -s $(which zsh)
|
||||
# echo "Configuring zsh as default shell"
|
||||
# chsh -s $(which zsh)
|
||||
|
||||
echo "Done."
|
||||
|
||||
Reference in New Issue
Block a user