#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :<> "${VIMRC_FILE}" else printf 'already configured \033[0;32m~/.vimrc\033[0m ;)\n\n' fi } # function install(){ # # } # function launch(){ # # } function conf_init(){ validate # download approve setting # install # launch } function void_init(){ if [[ "${VIMRC_FILE}/var/set" == '/var/set' ]];then VIMRC_FILE="${HOME}/.vimrc" fi # resolve python3 version(major.minor) if not setted up if [[ "${PYTHON3_VERSION}/var/set" == '/var/set' ]];then PYTHON3_VERSION="$(python3 -V|perl -pe '($_)=/([0-9]+[.][0-9]+)/')" fi if [[ "${VIM_POWERLINE_BINDINGS}/var/set" == '/var/set' ]];then VIM_POWERLINE_BINDINGS="${HOME}/.venv/powerline/lib/python${PYTHON3_VERSION}/site-packages/powerline/bindings/vim/" fi } function post_init(){ # sudo apt install --yes powerline git jq;\ # sudo apt install --yes build-essential libssl-dev libffi-dev libgmp3-dev libpq-dev;\ # sudo apt install --yes python3 python-is-python3 python3-dev python3-pip python3-venv;\ bash <(curl -s 'https://cdn.chorke.org/exec/cli/bash/install/profile/powerline/2.8.2-debian.sh.txt');\ } function init(){ post_init void_init conf_init } init