dotfiles/common/configure_fresh_system

68 lines
1.5 KiB
Text
Raw Normal View History

#!/bin/bash
set -e
echo
echo "configuring settings common among OSes"
sudo true
#zsh
chsh -s `which zsh` $USER
#submodules
DIR=`realpath $DIR`
echo "using $DIR as the top level directory"
cd $DIR
git submodule init
git submodule update --recursive
#configs
ln -vfs "$DIR/.vim" ~/.
ln -vfs "$DIR/.vimrc" ~/.
ln -vfs "$DIR/.tmux.conf" ~/.
rm -f "~/.zshrc"
ln -vfs "$DIR/.zshrc" ~/.
ln -vfs "$DIR/.oh-my-zsh" ~/.
ln -vfs "$DIR/.oh-my-zsh-plugins/zsh-syntax-highlighting" ~/.oh-my-zsh/custom/plugins/
ln -vfs "$DIR/.Slic3r" ~/.
2015-02-28 21:39:29 +00:00
ln -vfs "$DIR/.ghci" ~/.
mkdir -p ~/.kde/share/config/
ln -vfs "$DIR/.kdiff3rc" ~/.kde/share/config/kdiff3rc
ln -vfs "$DIR/.conky" ~/.
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/
# tools
ln -vfs "$DIR/tools" ~/
# stuff that does not like symbolic links
mkdir -vp ~/.config/terminator
rm -f ~/.config/terminator/config
ln "$DIR/.config/terminator/config" ~/.config/terminator/config
#install fonts
mkdir ~/.fonts
cp -rv "$DIR/fonts" ~/.fonts
fc-cache
#rvm
gpg --recv-keys BF04FF17
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
2015-07-04 10:45:07 +01:00
# todoman
cd "$DIR/common/todoman/"
sudo python3 setup.py install
echo
echo "now go ahead and restart"
echo