Skip to content
This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
/ bash-lib Public archive

DRY Principle is don't write same code again and again so, reducing redundancy

Notifications You must be signed in to change notification settings

salmanwaheed/bash-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-lib

DRY Principle is don't write same code again and again so, reducing redundancy.

Install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/salmanwaheed/bash-lib/master/install.sh)"

To Use

# check whether command is existed or not
has_pkg <COMMAND>

# install package without foreground process
ins_pkg <PACKAGE-NAME>

# register package without foreground process
reg_pkg <PACKAGE-NAME>

# to remove package without foreground process
rm_pkg <PACKAGE-NAME>

# get me some randon values
random <STRING> <LIMIT>

For development or contribution

  • Download repo with any project name.
  • You must use export BL_ENV='dev' for development environment or,
  • echo 'export BL_ENV='dev' >> ~/.zshrc or ~/.bashrc
  • to remove dev environment unset BL_ENV

About

DRY Principle is don't write same code again and again so, reducing redundancy

Topics

Resources

Stars

Watchers

Forks

Languages