From b9793bc5f12934cff4094fc13b2558e592e20f2a Mon Sep 17 00:00:00 2001 From: Platvoeten Date: Sat, 13 May 2017 08:31:21 +0200 Subject: [PATCH] Start up script --- initialize_script | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 initialize_script diff --git a/initialize_script b/initialize_script new file mode 100755 index 0000000..413793c --- /dev/null +++ b/initialize_script @@ -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 +}