Install curl when needed
This commit is contained in:
parent
5363a7a59a
commit
28ea133b1b
1 changed files with 14 additions and 3 deletions
|
|
@ -6,15 +6,25 @@ function get_path {
|
||||||
}
|
}
|
||||||
|
|
||||||
function user_config {
|
function user_config {
|
||||||
|
|
||||||
|
if [ 'dpkg -l curl' == 1 ]; then
|
||||||
|
echo 'Curl not installed, installing....'
|
||||||
|
apt-get install -y curl
|
||||||
|
#echo 'Exiting...'
|
||||||
|
#exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
|
||||||
|
# Create symlinks
|
||||||
get_path
|
get_path
|
||||||
echo 'Creating systemlinks'
|
echo 'Creating systemlinks'
|
||||||
ln -s $SCRIPTPATH/vim/.vimrc $HOME/;
|
ln -s $SCRIPTPATH/vim/.vimrc $HOME/;
|
||||||
ln -s $SCRIPTPATH/tmux/.tmux.conf $HOME/;
|
ln -s $SCRIPTPATH/tmux/.tmux.conf $HOME/;
|
||||||
mkdir -p $HOME/.vim/colors
|
mkdir -p $HOME/.vim/colors
|
||||||
sudo cp $SCRIPTPATH/vim/colors/* $HOME/.vim/colors
|
cp $SCRIPTPATH/vim/colors/* $HOME/.vim/colors
|
||||||
|
|
||||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function powerline_fonts {
|
function powerline_fonts {
|
||||||
|
|
@ -22,6 +32,7 @@ function powerline_fonts {
|
||||||
$HOME/.fonts/install.sh
|
$HOME/.fonts/install.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
user_config
|
||||||
echo 'Dont forget to run :PlugInstall inside vim!'
|
echo 'Dont forget to run :PlugInstall inside vim!'
|
||||||
|
|
||||||
echo -n 'Extra fonts? [y/n]'
|
echo -n 'Extra fonts? [y/n]'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue