diff --git a/bootstrap.sh b/bootstrap.sh index 225bf6b..d2e3ca8 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -11,6 +11,10 @@ BOOTSTRAP_DIR=~/sources/gitea_irisib/bootstrap CUSTOM_ZSHRC=$BOOTSTRAP_DIR/custom.zsh CUSTOM_ENV=$BOOTSTRAP_DIR/env.sh +GITEA_HTTPS="https://gitea.86thumbs.net" +GITEA_SSH="ssh://gitea@86thumbs.net:3022" +GITEA_CLONE=$GITEA_HTTPS + LOG=/dev/null if [[ -z $(groups | grep sudo) ]]; then @@ -22,9 +26,7 @@ fi function install_apt_dependencies () { sudo apt-get update > /dev/null && echo "cache updated" - for pgm in $DEPENDENCIES_APT; do - sudo apt-get install -y $pgm > /dev/null && echo "$pgm installed" - done + sudo apt-get install -y $DEPENDENCIES_APT > /dev/null && echo "all installed!" echo "--- ${FUNCNAME[0]} done" } @@ -60,7 +62,7 @@ EOF function clone_bootstrap_to_sources_dir () { local dst=$BOOTSTRAP_DIR if ! [[ -d $dst ]]; then - git clone ssh://gitea@86thumbs.net:3022/waldek/bootstrap.git $dst && echo "cloned bootstrap dir" + git clone $GITEA_CLONE/waldek/bootstrap.git $dst && echo "cloned bootstrap dir" else cd $dst git pull && echo "updated $dst" @@ -95,7 +97,7 @@ function customize_oh_my_zsh () { function clone_and_setup_vimrc () { local dst=$SOURCES_DIR/vimrc if ! [[ -d $dst ]]; then - git clone ssh://gitea@86thumbs.net:3022/waldek/vimrc.git $dst && echo "cloned bootstrap dir" + git clone $GITEA_CLONE/waldek/vimrc.git $dst && echo "cloned bootstrap dir" ln -s $dst/main.vimrc ~/.vimrc git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim vim +VundleInstall +qall