{"repo":"hedzr/bash.sh","free":true,"listed":false,"github":"https://github.com/hedzr/bash.sh","clone":"git clone https://github.com/hedzr/bash.sh.git","description":"main entry template of your first bash script file","language":"Shell","stars":12,"topics":["bash","shell","shell-scripts","zsh","template","minimal","skeleton","devops","linux","bash-sh"],"license":"MIT","category":"cli-tools","readme_excerpt":"bash.sh bash.sh is a starter template for shell developing. File bash.config can be applied and sourced into your zshell environment directly. See Import bash.config into your zsh env. This will allow loading any tools lazily and automatically from $HOME/.local/bin/ops.d/{lazy,apt,yum,zypper,ubuntu,opensuse-leap,...} . Features We devote ourselves to helping you to write shell script functions more easier. - Write lots of functions and make calling them easier - Write many functions and organize them hierarchically - Work for multiple devops environments: making ops command and its subcommands; decorating your local zshell init scripts for managing the useful utilities. History - v20241021 - improved is git dirty - added if systemd, if sysv (init), if upstart - CHANGELOG Usages Command Line Options Use It 1. Simple Copy bash.sh and rename as your main entry (such as: mgr ), and go ahead. Modify my main do sth() as you want. Example: 2. Global Use installer installer will copy bash.config to /.local/bin/bash.sh . installer makes a symbolic link ops to bash.config , you can run the builtin functions with it: try ops debug-info to ensure it works. Manually Copy bash.config to /usr/local/bin/ or anywhere you prefer, and source it from your script file. Some examples here. 3. Import bash.config into your zsh env You may import bash.config into your local zshell environment. This brings a extensible structure to you: the bash.sh loader (in darwin-only.sh ) will source in the script","default_branch":null,"files":null,"tree":[],"storefront":"/r/hedzr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hedzr/bash.sh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}