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 f7161a5d35 fix: Change boiler mode 3 months ago
README feat: Update README 3 months ago
boiler fix: Change boiler mode 3 months ago
codes feat: Change --256 option to -256 3 months ago
dots feat: Update dots help text 3 months ago
http feat: Refactored 5 months ago
log feat: Update log help text 3 months ago
md2 feat: Update md2 3 months ago
parts feat: Add syntax hihlight mode, refactored 5 months ago
rand feat: Add rand 3 months ago
upload fix: Fex --aliases option 5 months ago
view feat: Add -l option 3 months ago
yad feat: Update yad 3 months ago

README

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

Bash-pack 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.
rand Print random array item.

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