Bash4all
Normalizing bash administration and development across different OS-es and distributions
Install / Use
/learn @tpanj/Bash4allREADME
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. Check also latest video demos
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 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 pages.
Modes
development <cc | js | py | .. >
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:
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 <kbd>PgUp</kbd> / <kbd>PgDown</kbd> cycles through history only for matching entries.
Full text backward search Famous <kbd>Ctrl</kbd> + <kbd>r</kbd> search through commands history.
More
Bash4all uses some other great scripts:
- nvm - nodejs version manager. Available under
mode development js - cht - best community driven documentation repositories. Available under
mode development * - ...
You can also personalize complex installer. The rest of doc is found in Wiki pages to minimize core repository.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
