https://github.com/jacoblightning/helpful-bash-functions
Just a collection of some helpful bash functions I made
https://github.com/jacoblightning/helpful-bash-functions
Last synced: 10 months ago
JSON representation
Just a collection of some helpful bash functions I made
- Host: GitHub
- URL: https://github.com/jacoblightning/helpful-bash-functions
- Owner: Jacoblightning
- License: unlicense
- Created: 2024-09-14T03:32:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T04:13:19.000Z (almost 2 years ago)
- Last Synced: 2025-01-07T03:15:24.581Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# helpful-bash-functions
Just a collection of some helpful bash functions I made
# Usage
## In your shell:
To use these functions in your shell. Just source it in your bashrc:
Add the following line to your ~/.bashrc:
```shell
source helpful_bash_functions.sh # Or wherever the script is located
```
## As a dependency:
One way to use this script as a dependency is to download and source the script in your program.
I have written a simple example.
```shell
# This script depends on helpful_bash_functions.
down_to=$(mktemp)
wget -O "$down_to" "https://raw.githubusercontent.com/Jacoblightning/helpful-bash-functions/main/helpful_bash_functions.sh"
source "$down_to"
# Continue script
```