-
-
Save d1rk/6704192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# | |
# | |
# Run with the following command: | |
# | |
# | |
# wget -q -O - https://gist.github.com/jasonmorganson/4733446/raw/user.sh | sh | |
# wget -q -O - http://user.morganson.net | sh | |
USER=d1rk | |
USERHOME=/home/$USER | |
echo "" | |
echo "Setup user profile for $USER in $USERHOME" | |
echo "" | |
# Install freshshell | |
echo -n "Install freshshell... " | |
FRESH_LOCAL_SOURCE=jasonmorganson/dotfiles bash -c "`curl -sL get.freshshell.com`" >/dev/null 2>&2 | |
echo "done." | |
# Run freshshell to freshen up files | |
echo -n "Update dot files... " | |
sudo -u $USER $USERHOME/.fresh/source/freshshell/fresh/bin/fresh >/dev/null 2>&2 | |
echo "done." | |
# Install NVM | |
echo -n "Install NVM... " | |
git clone --quiet https://github.com/creationix/nvm.git ~/.nvm >/dev/null 2>&1 | |
echo "done." | |
# Run ZSH init for the first time to setup antigen | |
echo -n "Initialize ZSH... " | |
sudo -u $USER -i source $USERHOME/.zshrc >/dev/null 2>&2 | |
echo "done." | |
# Install node | |
echo -n "Install node.js... " | |
sudo -i $USER nvm install 0.10 | |
echo "done." | |
# Download fonts | |
echo -n "Downloading fonts... " | |
cd $USERHOME | |
sudo -u $USER mkdir -p $USERHOME/.fonts | |
wget -q http://downloads.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-1.017.zip && | |
unzip -qq -n SourceCodePro_FontsOnly-1.017.zip && | |
cp SourceCodePro_FontsOnly-1.017/OTF/* $USERHOME/.fonts | |
rm SourceCodePro_FontsOnly-1.017.zip | |
rm -r SourceCodePro_FontsOnly-1.017 | |
fc-cache -vf $USERHOME/.fonts >/dev/null 2>&1 | |
echo "done." | |
# Install powerline | |
echo -n "Install powerline... " | |
sudo -u $USER mkdir -p $USERHOME/.local | |
sudo -u $USER git clone git://github.com/Lokaltog/powerline.git $USERHOME/.local/powerline >/dev/null 2>&1 | |
pip install --user git+git://github.com/Lokaltog/powerline >/dev/null 2>&1 | |
mkdir -p $USERHOME/.fonts | |
mkdir -p $USERHOME/.fonts.conf.d | |
cp $USERHOME/.local/powerline/font/PowerlineSymbols.otf $USERHOME/.fonts/ | |
cp $USERHOME/.local/powerline/font/10-powerline-symbols.conf $USERHOME/.fonts.conf.d/ | |
fc-cache -vf $USERHOME/.fonts >/dev/null 2>&1 | |
echo "done." | |
# Run vundle for the first time to setup VIM | |
echo -n "Initialize VIM... " | |
sudo -u $USER ex +BundleInstall +BundleClean +qall >/dev/null 2>&1 | |
echo "done." | |
# Build Tern.js | |
echo -n "Build Tern.js... " | |
cd $USERHOME/.vim/bundle/tern_for_vim | |
sudo -u $USER npm install >/dev/null 2>&1 | |
echo "done." | |
# Build YouCompleteMe | |
echo -n "Build YouCompleteMe... " | |
cd $USERHOME/.vim/bundle/YouCompleteMe/ | |
./install.sh >/dev/null 2>&1 | |
echo "done." | |
echo "" | |
echo "All done." | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment