#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :< "${TMUX_CONFIG_FILE}" else printf 'already configured "\033[0;32mTMUX_CONFIG_FILE\033[0m" :)\n\n' fi } # function install(){ # # } # function launch(){ # # } function conf_init(){ validate download approve setting # install # launch } function void_init(){ # 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 [[ "${TMUX_CONFIG_FILE}/var/set" == '/var/set' ]];then TMUX_CONFIG_FILE="${HOME}/.tmux.conf" fi if [[ "${TMUX_PLUGINS_TPM_HOME}/var/set" == '/var/set' ]];then TMUX_PLUGINS_TPM_HOME="${HOME}/.tmux/plugins/tpm" fi if [[ "${TMUX_POWERLINE_CONFIG_FILE}/var/set" == '/var/set' ]];then TMUX_POWERLINE_CONFIG_FILE="${HOME}/.venv/powerline/lib/python${PYTHON3_VERSION}/site-packages/powerline/bindings/tmux/powerline.conf" 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