dotfiles/initialize_script
Sonny 8ae037cd30 Qemu script deletion & container script update
- container script checks for sudo & adds optionally adds entry to
users' ssh config
- initialize script checks for sudo priveliges like the container script
- Removal of qemu scripts
2017-07-12 13:25:26 +02:00

36 lines
841 B
Bash
Executable file

#!/bin/bash
# Setup script for vim & tmux
if [ $EUID != 0 ]; then
echo "This script needs sudo priveleges in order to install Curl"
echo "Exiting..."
exit 1
fi
function get_path {
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
}
function user_config {
CURL='dpkg-query -l | grep curl | wc -l'
if [ "$CURL" > 0 ]; then
echo 'Curl not installed, installing....'
apt-get install -y curl
fi
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# Create symlinks
get_path
echo 'Creating systemlinks'
ln -s $SCRIPTPATH/vim/.vimrc $HOME/;
ln -s $SCRIPTPATH/tmux/.tmux.conf $HOME/;
ln -s $SCRIPTPATH/vim/colors $HOME/.vim/
}
user_config
echo 'Dont forget to run :PlugInstall inside vim!'