Skip to content

Shell Toolkit contains a few functions and definitions to help make certain actions easier when writing shell scripts.

Notifications You must be signed in to change notification settings

gmcrist/shell-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Shell Toolkit

Overview

Shell Toolkit is a library of useful functions, variables, and definitions to be used in bash scripting.

Installation

Install 'shell-toolkit' and the library files into a location that can be sourced in your path.

./install.sh /usr/local/bin

Usage

Source the library into your script:

#!/usr/bin/env bash
source shell-toolkit

Available Modules

Library of useful functions, variables, and definitions for bash scripting.

These files/functions have accumulated over the years when used in a variety of personal projects and now merged into a single library for better re-use and distribution.

Console Utilities

colors.sh provides a set of definitions are used to help with text output/display on the terminal. Requires tput to function

Network / Internet

download.sh provides a set of functions for various network/internet related functions.

Logging

log.sh provides a set of functions for logging within shell scripts. Includes configuration to customize log messages, such as:

  • Prefixed Labels
  • Color formatting
  • Enable/Disable based upon the log level

Supports the following log level definitions:

  • Fatal
  • Error
  • Warning
  • Notice
  • Informational
  • Debug

About

Shell Toolkit contains a few functions and definitions to help make certain actions easier when writing shell scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages