Bash scripts bundle.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ge 4937ddb66a feat: upgrade dots to version 0.3 2 weeks ago
README feat: Update README 1 month ago
boiler feat: Add boiler license download, up version to 0.2.0 2 weeks ago
codes feat: Add codes 1 month ago
dots feat: upgrade dots to version 0.3 2 weeks ago
esc update esc, http and prntl 6 months ago
http update esc, http and prntl 6 months ago
log add log 6 months ago
md2 feat: Update README 1 month ago
parts feat: Add parts 1 month ago
prntl update esc, http and prntl 6 months ago
rng update 8 months ago
upload feat: Update upload 1 month ago
view update 8 months ago
yad add yad and md2man 6 months ago

README

   ___  ___  _______ __
/ _ )/ _ \/ ___/ //_/
/ _ / ___/ /__/ ,<
/____/_/ \___/_/|_|


bpck (Bash-pack) is is a bundle of small Bash scripts for utilitary purposes.

Many scripts are wrappers of some software? see dependecies below.

Scripts
=======

http Python 3 http.server runner.
upload Upload files to remote server via server alias.
parts Store and view code snippets.
yad Download file from Yandex.Disk storage.
md2 Convert Markdown to HTML, ROFF and PDF. Pandoc wrapper.
codes Print ANSI sequences (16, 256 colors and formatting).
boiler Bash boilerplate.
dots Dotfiles manager. Save and push selected files to git repo.
view Print highlighted text to STDOUT. highlight wrapper.
log Logs viewing tool (nginx and exim4). Prints logs to STDOUT.
prntl Print formatted log. Simple logging tool.
esc Escape whitespaces and specail characters in string.
rng Expand ranges like "1-4,7,9-12" into a number series.

Installation
============

Install dependencies:

# Ubuntu / Debian
sudo apt install curl gawk git
sudo apt install pandoc # for md2
sudo apt install highlight # for view

# Arch Linux
sudo pacman -S curl gawk git
sudo pacman -S pandoc # for md2
sudo pacman -S highlight # for view

Install all scripts (any distro):

dir=$HOME/.local/bin; bashfile=$HOME/.bashrc
[[ "$XDG_SESSION_TYPE" == "tty" ]] && bashfile=$HOME/.bash_profile
mkdir -p $dir
git clone https://gitea.gch.icu/ge/bpck.git $dir
chmod +x $dir/*
[[ ! $PATH =~ "$dir" ]] && { echo "export PATH=$dir:\$PATH" >> $bashfile; }
. $bashfile

P.S.: You can remove unwanted scripts directly from ~/.local/bin