36 lines
791 B
Bash
Executable File
36 lines
791 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "installing dotfiles"
|
|
|
|
echo "initializing submodule(s)"
|
|
git submodule update --init --recursive
|
|
|
|
echo "creating symlinks"
|
|
linkables=$( ls -1 -d **/*.symlink )
|
|
for file in $linkables ; do
|
|
target="$HOME/.$( basename $file ".symlink" )"
|
|
echo "creating symlink for $file"
|
|
ln -s $file $target
|
|
done
|
|
|
|
if [ "$(uname)" == "Darwin" ]; then
|
|
echo "running on OSX"
|
|
|
|
echo "installing homebrew"
|
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
|
|
echo "brewing all the things"
|
|
source scripts/brew.sh
|
|
|
|
echo "updating OSX settings"
|
|
source scripts/osx.sh
|
|
|
|
echo "installing node (from nvm)"
|
|
nvm install stable
|
|
nvm alias default stable
|
|
fi
|
|
|
|
|
|
echo "configuring zsh as default shell"
|
|
chsh -s $(which zsh)
|