2014-08-31 07:01:19 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2015-04-30 21:29:17 +01:00
|
|
|
set -e
|
2015-01-25 08:57:25 +00:00
|
|
|
echo
|
|
|
|
echo "configuring settings common among OSes"
|
2015-07-19 10:23:35 +01:00
|
|
|
sudo true
|
|
|
|
|
2015-01-25 08:57:25 +00:00
|
|
|
#zsh
|
2015-07-19 10:23:35 +01:00
|
|
|
if [[ -z $DONT_CHANGE_SHELL ]]; then
|
|
|
|
echo "changing shell to zsh"
|
|
|
|
chsh -s `which zsh` $USER
|
|
|
|
fi
|
2014-08-31 07:01:19 +01:00
|
|
|
|
|
|
|
#submodules
|
2015-03-28 08:10:58 +00:00
|
|
|
DIR=`realpath $DIR`
|
|
|
|
echo "using $DIR as the top level directory"
|
2014-08-31 07:01:19 +01:00
|
|
|
cd $DIR
|
|
|
|
git submodule init
|
|
|
|
git submodule update --recursive
|
|
|
|
|
2015-03-16 06:01:03 +00:00
|
|
|
#configs
|
2014-12-25 16:17:42 +00:00
|
|
|
ln -vfs "$DIR/.vim" ~/.
|
|
|
|
ln -vfs "$DIR/.vimrc" ~/.
|
|
|
|
ln -vfs "$DIR/.tmux.conf" ~/.
|
2014-08-31 07:01:19 +01:00
|
|
|
rm -f "~/.zshrc"
|
2014-12-25 16:17:42 +00:00
|
|
|
ln -vfs "$DIR/.zshrc" ~/.
|
|
|
|
ln -vfs "$DIR/.oh-my-zsh" ~/.
|
2015-07-03 22:35:00 +01:00
|
|
|
ln -vfs "$DIR/.oh-my-zsh-plugins/zsh-syntax-highlighting" ~/.oh-my-zsh/custom/plugins/
|
2014-12-25 16:17:42 +00:00
|
|
|
ln -vfs "$DIR/.Slic3r" ~/.
|
2015-02-28 21:39:29 +00:00
|
|
|
ln -vfs "$DIR/.ghci" ~/.
|
2015-03-11 20:37:36 +00:00
|
|
|
mkdir -p ~/.kde/share/config/
|
|
|
|
ln -vfs "$DIR/.kdiff3rc" ~/.kde/share/config/kdiff3rc
|
2015-04-06 12:29:38 +01:00
|
|
|
ln -vfs "$DIR/.conky" ~/.
|
2014-12-25 16:17:42 +00:00
|
|
|
ln -vfs "$DIR/.gitconfig.linux.private" ~/.gitconfig
|
2015-04-12 18:07:50 +01:00
|
|
|
mkdir -p ~/.config/autostart/
|
|
|
|
ln -vfs "$DIR/.config/autostart/conky.desktop" ~/.config/autostart/
|
2015-07-04 10:45:07 +01:00
|
|
|
mkdir -p ~/.config/todoman/
|
|
|
|
ln -vfs "$DIR/.config/todoman/todoman.conf" ~/.config/todoman/
|
2015-07-04 11:12:53 +01:00
|
|
|
mkdir -p ~/.config/vdirsyncer/
|
|
|
|
ln -vfs "$DIR/.config/vdirsyncer/config" ~/.config/vdirsyncer/
|
2015-03-16 06:01:03 +00:00
|
|
|
|
|
|
|
# tools
|
2014-12-25 16:17:42 +00:00
|
|
|
ln -vfs "$DIR/tools" ~/
|
2014-08-31 07:01:19 +01:00
|
|
|
|
2014-10-26 09:02:50 +00:00
|
|
|
# stuff that does not like symbolic links
|
2015-01-03 14:42:17 +00:00
|
|
|
mkdir -vp ~/.config/terminator
|
2014-10-26 09:02:50 +00:00
|
|
|
rm -f ~/.config/terminator/config
|
|
|
|
ln "$DIR/.config/terminator/config" ~/.config/terminator/config
|
|
|
|
|
2014-08-31 07:01:19 +01:00
|
|
|
#install fonts
|
|
|
|
mkdir ~/.fonts
|
|
|
|
cp -rv "$DIR/fonts" ~/.fonts
|
|
|
|
fc-cache
|
|
|
|
|
2015-07-19 08:56:32 +01:00
|
|
|
#rust
|
|
|
|
curl -sSf https://static.rust-lang.org/rustup.sh | sh
|
|
|
|
cd "$DIR/.vim/bundle/racer/"
|
|
|
|
cargo build
|
|
|
|
cd "$HOME/dev/"
|
|
|
|
git clone https://github.com/rust-lang/rust.git
|
|
|
|
|
2014-12-25 16:17:42 +00:00
|
|
|
#rvm
|
2015-01-03 14:42:17 +00:00
|
|
|
gpg --recv-keys BF04FF17
|
2014-12-25 16:17:42 +00:00
|
|
|
curl -sSL https://get.rvm.io | bash -s stable
|
|
|
|
source $HOME/.rvm/scripts/rvm
|
|
|
|
rvm install ruby
|
|
|
|
|
|
|
|
# talks: reveal-md
|
|
|
|
sudo ln -s /usr/bin/nodejs /usr/bin/node
|
|
|
|
sudo npm install -g reveal-md
|
2014-08-31 07:01:19 +01:00
|
|
|
|
2015-07-04 10:55:03 +01:00
|
|
|
# TODOs + sync
|
2015-07-04 10:45:07 +01:00
|
|
|
cd "$DIR/common/todoman/"
|
|
|
|
sudo python3 setup.py install
|
2015-07-04 10:55:03 +01:00
|
|
|
sudo pip install vdirsyncer
|
2015-07-04 10:45:07 +01:00
|
|
|
|
2014-08-31 07:01:19 +01:00
|
|
|
echo
|
2015-01-25 08:58:43 +00:00
|
|
|
echo "now go ahead and restart"
|
|
|
|
echo
|
|
|
|
|
2014-08-31 07:01:19 +01:00
|
|
|
|