bash-preexec - ⚡ preexec and precmd functions for Bash just like Zsh.

  •        11

preexec and precmd hook functions for Bash in the style of Zsh. They aim to emulate the behavior as described for Zsh. You'll want to pull down the file and add it to your bash profile/configuration (i.e ~/.bashrc, ~/.profile, ~/.bash_profile, etc). It must be the last thing imported in your bash profile.



Related Projects

bash-it - A community Bash framework.

  •    Shell

Includes autocompletion, themes, aliases, custom functions, a few stolen pieces from Steve Losh, and more. Bash-it provides a solid framework for using, developing and maintaining shell scripts and custom commands for your daily work. If you're using the Bourne Again Shell (Bash) on a regular basis and have been looking for an easy way on how to keep all of these nice little scripts and aliases under control, then Bash-it is for you! Stop polluting your ~/bin directory and your .bashrc file, fork/clone Bash-it and start hacking away.

bash-oo-framework - Bash Infinity is a modern boilerplate / framework / standard library for bash

  •    Shell

Bash Infinity is a standard library and a boilerplate framework for writing tools using bash. It's modular and lightweight, while managing to implement some concepts from C#, Java or JavaScript into bash. The Infinity Framework is also plug & play: include it at the beginning of your existing script to import any of the individual features such as error handling, and start using other features gradually. The aim of Bash Infinity is to maximize readability of bash scripts, minimize the amount of code repeat and create a central repository for well-written, and a well-tested standard library for bash.

complete - bash completion written in go + bash completion for go command

  •    Go

A tool for bash writing bash completion in go.Writing bash completion scripts is a hard work. This package provides an easy way to create bash completion scripts for any command, and also an easy way to install/uninstall the completion of the command.

bash-powerline - Powerline-style Bash prompt in pure Bash script

  •    Shell

Powerline for Bash in pure Bash script. For best result, use Solarized colorscheme for your terminal emulator. Or hack your own colorscheme by modifying the script. It's really easy.

bash-sensible - An attempt at saner Bash defaults

  •    Shell

An attempt at saner Bash defaults. Inspired by Tim Pope's sensible.vim. Sensible Bash is intended to be a simple starting point for a better Bash user experience out of the box.

pure-bash-bible - 📖 A collection of pure bash alternatives to external processes.

  •    Shell

A collection of pure bash alternatives to external processes. The goal of this book is to document known and unknown methods of doing various tasks using only built-in bash features. Using the snippets from this bible can help remove unneeded dependencies from scripts and in most cases make them faster. I came across these tips and discovered a few while developing neofetch, pxltrm and other smaller projects.

bash-handbook - :book: For those who wanna learn Bash

  •    Javascript

This document was written for those who want to learn Bash without diving in too deeply. You should be able to run bash-handbook at the command line now. This will open the manual in your selected $PAGER. Otherwise, you may continue reading on here.

Bash Batch Image Processing Scripts

  •    Awk

bbips - Bash Batch Image Processing Scripts. A collection of bash scripts that use Imagemagick to quot;batchquot; process entire directories of images all at once. For use with Linux and Unix systems to batch process *.jpg image files from the bash shell.


  •    C

win-bash is port of the GNU bash for Microsoft Windows NT based systems. It is independent from the cygwin library and any other non-standard DLL and does not need any registry variables. win-bash is based on bash_nt from Mountain Math Softw

HalloweenBash - Custom Bash Profile Generator

  •    Javascript

Customize your bash PS1 config & color.Halloween Bash is released under the MIT License.

bass - Make Bash utilities usable in Fish shell

  •    Python

Bass makes it easy to use utilities written for Bash in fish shell. Regular bash scripts can be used in fish shell just as scripts written in any language with proper shebang or explicitly using the interpreter (i.e. using bash However, many utilities, such as virtualenv, modify the shell environment and need to be sourced, and therefore cannot be used in fish. Sometimes, counterparts (such as the excellent virtualfish) are created, but that's often not the case.

the-art-of-command-line - Master the command line, in one page


Fluency on the command line is a skill often neglected or considered arcane, but it improves your flexibility and productivity as an engineer in both obvious and subtle ways. This is a selection of notes and tips on using the command-line that we've found useful when working on Linux. Some tips are elementary, and some are fairly specific, sophisticated, or obscure. This page is not long, but if you can use and recall all the items here, you know a lot. Learn basic Bash. Actually, type man bash and at least skim the whole thing; it's pretty easy to follow and not that long. Alternate shells can be nice, but Bash is powerful and always available (learning only zsh, fish, etc., while tempting on your own laptop, restricts you in many situations, such as using existing servers).

hstr - Bash and zsh shell history suggest box - easily view, navigate, search and manage your command history

  •    C

Easily view, navigate and search your command history with shell history suggest box for Bash and zsh. HSTR (HiSToRy) is a command line utility that brings improved Bash command completion from the history. It aims to make completion easier and more efficient than Ctrlr.

learnyoubash - Learn you how to write your first bash script

  •    Javascript

Learn you how to use the terminal and write your the first Bash script. This workshopper is based on bash-handbook, so if you want to more examples, check it out.

bashcached - memcached server built on bash + socat

  •    Ruby

So, you can use it as soon as you download it. And, it supports to serve over tcp and unix domain socket. - Bash Academy - The Bash Guide

  •    HTML

Bash Academy - The Bash Guide

bashful - Use a yaml file to stitch together commands and bash snippits and run them with a bit of style

  •    Go

This is beta quality! Use at your own risk. Use a yaml file to stitch together commands and bash snippets and run them with a bit of style. Why? Because your bash script should be quiet and shy-like (...and not such a loud mouth).

bash-completion - Programmable completion functions for bash

  •    Shell

The easiest way to install this software is to use a package; it is available in many operating system distributions, some examples are listed below. The package's name is usually bash-completion. These commands install the completions and helpers, as well as a profile.d script that loads bash_completion where appropriate. - A foreign function interface for bash.

  •    C

This is, a foreign function interface for bash. is a bash plugin that provides a foreign function interface directly in your shell. In other words, it allows you to call routines in shared libraries from within bash.

bats-core - Bash Automated Testing System

  •    Shell

Bats is a TAP-compliant testing framework for Bash. It provides a simple way to verify that the UNIX programs you write behave as expected. A Bats test file is a Bash script with special syntax for defining test cases. Under the hood, each test case is just a function with a description.