Skip to content

Miscellaneous bash utilities I've written for myself

License

Notifications You must be signed in to change notification settings

goodside/bash_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

bash_utils

Miscellaneous MIT-licensed bash utilities I've collected or written for myself.

Design goals

Bash is not a good choice for writing any substantial piece of software, with very few exceptions. This project targets those exceptions and tries to make them less unwieldy.

Functionality I'm thinking about:

  • Environment/library management and debugging
  • Tools for making source-able scripts that are easy to reason about
  • Interactive-mode convenience functions

Install

Clone this repository to ~/bash_utils:

git clone https://github.com/goodside/bash_utils.git ~/bash_utils

source files

Files in this directory are meant to be included with source $file — not with chmod +x.

  • path.bash — convenience functions for manipulating PATH
  • bash-preexec.sh — packaged from rcaloras/bash-preexec

Example profile

BASH_UTILS_ROOT="$HOME/bash_utils/"
source $BASH_UTILS_ROOT/path.bash

# [ Existing body of .bash_profile ]

# bash-preexec.sh must be sourced at end of file if required:
source $BASH_UTILS_ROOT/bash-preexec.sh

About

Miscellaneous bash utilities I've written for myself

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages