Removal of system_wide function
This commit is contained in:
parent
d2a43ad7a1
commit
76b96728c8
1 changed files with 0 additions and 26 deletions
|
|
@ -1,28 +1,10 @@
|
|||
#!/bin/bash
|
||||
# Setup script for vim & tmux
|
||||
echo -n 'Systemwide or user specific configuration? [s/u]'
|
||||
read FUNCTION
|
||||
|
||||
function get_path {
|
||||
SCRIPT=`realpath $0`
|
||||
SCRIPTPATH=`dirname $SCRIPT`
|
||||
}
|
||||
|
||||
function system_wide {
|
||||
get_path
|
||||
# Change branch for plugin directory
|
||||
sudo git checkout -b system_wide
|
||||
echo 'Creating systemlinks'
|
||||
sudo ln -s $SCRIPTPATH/vim/.vimrc /etc/vim/vimrc.local;
|
||||
sudo ln -s $SCRIPTPATH/tmux/.tmux.conf /etc/tmux.conf;
|
||||
sudo mkdir /etc/vim/colors
|
||||
sudo cp $SCRIPTPATH/vim/colors/* /etc/vim/colors
|
||||
|
||||
# Download vim-plug
|
||||
curl -fLo /etc/vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
}
|
||||
|
||||
function user_config {
|
||||
get_path
|
||||
echo 'Creating systemlinks'
|
||||
|
|
@ -40,14 +22,6 @@ function powerline_fonts {
|
|||
$HOME/.fonts/install.sh
|
||||
}
|
||||
|
||||
if [ "$FUNCTION" == "s" ] ;then
|
||||
system_wide
|
||||
elif [ "$FUNCTION" == "u" ] ;then
|
||||
user_config
|
||||
fi
|
||||
|
||||
|
||||
|
||||
echo 'Dont forget to run :PlugInstall inside vim!'
|
||||
|
||||
echo -n 'Extra fonts? [y/n]'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue