Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpanj/bash4all

Normalizing bash administration and development across different OS-es and distributions
https://github.com/tpanj/bash4all

administration bash bash-alias bash-completion bash-configuration bash-hacks bash-script cross-platform nvm pkg productivity scm vlang

Last synced: about 2 months ago
JSON representation

Normalizing bash administration and development across different OS-es and distributions

Awesome Lists containing this project

README

        

# bash4all
Normalizing bash administration and development across different OS-es and distributions plus various helpful aliases and functions.

With that it is meant that you can use bash similar way in different environments
with the help of so called modes and aliases.
For instance we have install mode for installing packages where
you only need to know package name.
And we have scm-git mode which enhances git usage.
Keyboard shortcuts should should work the same documented way across distributions / OSes.
This script also enhances configuration, autocompletion and default settings.
Effective documentation is kept in [wiki](https://github.com/tpanj/bash4all/wiki).
Check also latest [video demos](https://github.com/tpanj/bash4all-media)

Helps bridge the gap between different systems.
What developers say is a wealth of choices is possible for some users a torment.
That is the main reason script exists but not leave behind those who are eager to learn new things.

Help and [contributions](https://github.com/tpanj/bash4all/wiki/Contribute)
are highly desirable and appreciated.

# Installation
Bash4all is ready for Unix-like operating system ( macOS, Linux, BSD).
Run installer as bash script to install or update it.
Script will automatically install git from "your" repository
(if not already available on system),
clone this repository and bind your current user to it.

**via curl:**

bash -c "$(curl -fsSL https://raw.githubusercontent.com/tpanj/bash4all/master/install.bash)"

**via wget:**

bash -c "$(wget -O- https://raw.githubusercontent.com/tpanj/bash4all/master/install.bash)"

**or shortened:**

bash -c "$(wget -O- git.io/bash4all)"

# Usage
Here are described some examples of usage. The rest is maintained in [Wiki](https://github.com/tpanj/bash4all/wiki) pages.

## Modes
### development
Development and executing mode for programming language.

### pkg - managing software packages and services
Aliases:
* I - unconditionally installs package(s)
* i - installs package(s)
* U - unconditionally uninstall package(s)
* u - uninstall package(s)
* S - service command (start, stop, .. )
* ...

Example:
```bash
mode pkg
I vlc # installs vlc
```
### scm - managing software packages and services
Source Code Management for bzr, git, hg or svn.

**Generic SCM commands:**
* **co** URL - Clone or checkout repository. Default set to git type
* **add** item - add item under SCM
* **commit** - track change
* **push** - publish changes
* **pull** - get changes from remote
* **branch** - create branch
* **log** - show commit history

## Core functions
**mode** for a particular job
* pkg - mode for installing and uninstalling software
* scm - Source Code Management. This module starts also automatically when in SCM folder

**extract** archive
Extracting to current dir

## Keys bindings

**Begin of line search**
Type beginning of previous command and then PgUp / PgDown
cycles through history only for matching entries.

**Full text backward search**
Famous Ctrl + r search through commands history.

# More

Bash4all uses some other great scripts:
* **[nvm](https://github.com/nvm-sh/nvm)** - nodejs version manager. Available under `mode development js`
* **[cht](https://github.com/chubin/cheat.sh)** - best community driven documentation repositories. Available under `mode development *`
* ...

You can also [personalize complex installer](https://github.com/tpanj/bash4all/wiki/pkg#advanced). The rest of doc is found in
[Wiki](https://github.com/tpanj/bash4all/wiki) pages to minimize core repository.