Useful set of functions and aliases.
-
Clone this repository
git clone https://github.com/InternetGuru/bashcfg.git ~/bashcfg -
Run the install script, preview its changes first with
--dry-run~/bashcfg/install --dry-run ~/bashcfg/install
It makes
~/.bashrcsource bashcfg (a block marked# >>> bashcfg >>>) and removes aliases defined before that block which bashcfg redefines or which are obsolete (egrep,fgrep). Duplicate functions and definitions after the block are reported only. The original is kept as~/.bashrc.bak-<timestamp>. Run it again after updating bashcfg or moving the directory. -
Browse what is defined; every alias and function is described in the source files
alias # list aliases declare -F # list function names type NAME # show what NAME is and its definition