up to date install script
This commit is contained in:
parent
1000c410a7
commit
6109666aae
33
install.sh
33
install.sh
@ -1,26 +1,19 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install oh-my-zsh
|
echo "Installing xcode commandline tools..."
|
||||||
if [ ! -d ~/.oh-my-zsh ]; then
|
xcode-select --install
|
||||||
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
# Mojave fix
|
||||||
fi
|
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
|
||||||
|
|
||||||
# Install emacs.d
|
echo "Installing homebrew..."
|
||||||
if [ ! -d ~/.emacs.d ]; then
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
git clone https://github.com/walkah/emacs.d.git ~/.emacs.d
|
|
||||||
fi
|
|
||||||
|
|
||||||
DOTFILES=`cd $(dirname $0)/home; pwd`
|
echo "Installing oh-my-zsh..."
|
||||||
|
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
|
|
||||||
for FILE in `ls -a $DOTFILES`; do
|
echo "Installing homesick..."
|
||||||
NAME=`basename $FILE`
|
sudo gem install homesick
|
||||||
TARGET=$HOME/$NAME
|
homesick clone git@github.com:walkah/dotfiles.git
|
||||||
|
|
||||||
if [ $NAME != '.' ] && [ $NAME != '..' ]; then
|
echo "Initial brew bundle..."
|
||||||
if [ -L $TARGET ]; then
|
brew bundle --global
|
||||||
echo "$TARGET exists"
|
|
||||||
else
|
|
||||||
ln -vsf $FILE $TARGET
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user