dotfiles/setup.sh

87 lines
2.8 KiB
Bash
Raw Normal View History

2016-03-31 13:06:41 -05:00
#!env bash
pushd ~
2016-03-31 13:06:41 -05:00
sudo apt-get update
2016-03-31 14:53:52 -05:00
sudo apt-get install vim tmux git fluxbox aptitude default-jdk default-jdk-doc fontconfig apt-file thefuck libxft-dev python-setuptools vlc keepassx tree unison lilypond frescobali
sudo apt-file update
2016-03-31 13:06:41 -05:00
mkdir ~/projects ~/programs ~/temp
git clone _git@git.jdb-labs.com:jdb/dotfile temp/dotfiles
cd ~/temp/dotfiles
2016-03-31 13:57:23 -05:00
cp -r bin .fonts .tmux.conf .vimrc .vim .bash_aliases .gitconfig .screenrc .Xdefaults .config .gradle .xinitrc .wdiwtlt.properties .wdiwtlt.cli.properties ~
cat .bashrc >> ~/.bashrc
2016-03-31 13:06:41 -05:00
# VIM
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
cd ~/.vim/bundle
git clone https://github.com/ctrlpvim/ctrlp.vim.git
#git clone https://github.com/leafgarland/typescript-vim.git
git clone https://github.com/zah/nim.vim.git
git clone https://github.com/tpope/vim-fugitive.git
git clone https://github.com/isRuslan/vim-es6.git
git clone https://github.com/airblade/vim-gitgutter.git
2016-03-31 14:53:52 -05:00
ln -s /usr/share/lilypond/2.18.2/vim lilypond.vim
2016-03-31 13:06:41 -05:00
# Setup ST
git clone http://git.suckless.org/st programs/st
cd ~/programs/st
cp ~/projects/dotfiles/st/* .
cp config.normal.h config.h && make && sudo make install
cp config.large.h config.h && make && sudo cp st /usr/local/bin/st-large
cp config.small.h config.h && make && sudo cp st /usr/local/bin/st-small
2016-03-31 13:42:14 -05:00
# Setup Java, Groovy & Gradle
2016-03-31 13:06:41 -05:00
cd ~/temp
wget https://dl.bintray.com/groovy/maven/apache-groovy-sdk-2.4.6.zip
wget https://services.gradle.org/distributions/gradle-2.12-all.zip
cd ~/programs
unzip ~/temp/apache-groovy-sdk-2.4.6.zip
2016-03-31 13:06:41 -05:00
unzip ~/temp/gradle-2.12-all.zip
rm ~/temp/apache-groovy-sdk-2.4.6.zip
2016-03-31 13:06:41 -05:00
rm ~/temp/gradle-2.12-all.zip
ln -s groovy-2.4.6 groovy
2016-03-31 13:06:41 -05:00
ln -s gradle-2.12 gradle
2016-07-15 17:06:20 -05:00
echo 'export JAVA_HOME=/usr/lib/jvm/default-java' >> ~/.profile
2016-03-31 13:06:41 -05:00
echo 'export GROOVY_HOME=$HOME/programs/groovy' >> ~/.profile
echo 'export GRADLE_HOME=$HOME/programs/gradle' >> ~/.profile
echo 'export PATH="$PATH:$GROOVY_HOME/bin:$GRADLE_HOME/bin"' >> ~/.profile
# Setup Nim
cd ~/programs
git clone https://github.com/nim-lang/Nim.git nim
cd nim
2016-03-31 13:06:41 -05:00
git clone --depth 1 https://github.com/nim-lang/csources
cd csources && sh build.sh
cd ..
bin/nim c koch
./koch boot -d:release
cd ~/programs
git clone https://github.com/nim-lang/nimble
cd nimble
nim c -r src/nimble install
echo 'export NIM_HOME="$HOME/programs/nim"' >> ~/.profile
echo 'export PATH="$PATH:$NIM_HOME/bin:$HOME/.nimble/bin"' >> ~/.profile
2016-03-31 13:06:41 -05:00
2016-03-31 13:57:23 -05:00
source ~/.profile
# WDIWTLT
cd ~/projects
git clone _git@git.jdb-labs.com:jdb/util-classes
cd util-classes
git checkout 4.4
gradle install clean
cd ..
git clone _git@git.jdb-labs.com:jdb/wdiwtlt
cd wdiwtlt
gradle clean assembleDist
cd ~/programs
tar xf ~/projects/wdiwtlt/cli/build/distributions/*.tar
mv wdiwtlt-* wdiwtlt
chmod +x
ln -s wdiwtlt/bin/wdiwtlt-cli ~/bin/wdiwtlt
2016-03-31 13:06:41 -05:00
popd