Start up script

This commit is contained in:
Platvoeten 2017-05-13 08:31:21 +02:00
parent bf566dc648
commit b9793bc5f1

32
initialize_script Executable file
View file

@ -0,0 +1,32 @@
#!/bin/bash
# Setup script for vim & tmux
echo -n 'Systemwide or user specific configuration? [s/u]'
read FUNCTION
if ['$FUNCTION' == 's'] ;then
system_wide
elif ['$FUNCTION' == 'u'] ;then
user_config
fi
echo -n 'Extra fonts? [y/n]'
read FONTS
if ['$FONTS' == 'y'] ;then
powerline_fonts
fi
function system_wide {
ln -s vim/.vimrc /etc/vim/vimrc;
ln -s tmux/.tmux.conf /etc/tmux.conf;
}
function user_config {
ln -s vim/.vimrc $HOME/;
ln -s tmux/.tmux.conf $HOME/;
}
function powerline_fonts {
git clone https://github.com/powerline/fonts.git $HOME/.fonts
./$HOME/.fonts/install.sh
}