{"id":23969082,"url":"https://github.com/jiab77/bash-funcs","last_synced_at":"2026-05-19T14:10:24.395Z","repository":{"id":231932198,"uuid":"783072889","full_name":"Jiab77/bash-funcs","owner":"Jiab77","description":"Just a basic collection of Bash Functions that can be used in any scripts.","archived":false,"fork":false,"pushed_at":"2025-01-06T01:43:16.000Z","size":58,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T14:48:14.097Z","etag":null,"topics":["bash","functions"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jiab77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-06T21:38:26.000Z","updated_at":"2025-01-06T01:43:19.000Z","dependencies_parsed_at":"2024-04-06T22:28:56.769Z","dependency_job_id":"f93b55ff-ee63-496a-a764-0b5b396640f5","html_url":"https://github.com/Jiab77/bash-funcs","commit_stats":null,"previous_names":["jiab77/bash-funcs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jiab77/bash-funcs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Fbash-funcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Fbash-funcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Fbash-funcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Fbash-funcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jiab77","download_url":"https://codeload.github.com/Jiab77/bash-funcs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jiab77%2Fbash-funcs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278486278,"owners_count":25994941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","functions"],"created_at":"2025-01-07T00:59:41.001Z","updated_at":"2025-10-05T16:56:29.043Z","avatar_url":"https://github.com/Jiab77.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash Funcs\n\nJust a basic collection of Bash Functions that can be used in any scripts.\n\n\u003e This project is still experimental and should be used with caution.\n\n## How to use\n\nThere are several ways to use this project and some of them will be described below.\n\n### In scripts\n\nAdd the following line in your scripts:\n\n```bash\n[[ -r /path/to/bash_funcs ]] \u0026\u0026 source /path/to/bash_funcs\n```\n\n### In your current Bash session\n\nJust run the following command:\n\n```console\n$ source /path/to/bash_funcs\n```\n\n### In all your Bash sessions\n\nEdit your `~/.bashrc` file and add the following lines:\n\n```bash\n# Load 'bash-funcs' project\n[[ -r /path/to/bash_funcs ]] \u0026\u0026 source /path/to/bash_funcs\n[[ -n show_self_loading ]] \u0026\u0026 show_self_loading 2\u003e/dev/null\n```\n\nOnce done, you can call any included functions.\n\n### In ZSH instead of Bash\n\nYou can call any included functions from your ZSH shell as long as `bash-funcs` has been added to your `~/.bashrc` files as explained above.\n\nHere is how to do:\n\n```console\n$ bash -i -c '\u003cfunction_name\u003e [args]'\n```\n\nExample:\n\n```console\n$ bash -i -c 'show_device_temp'\n\nLoaded 'bash_funcs' file\n - From: /path/to/bash-funcs\n - Version: 0.6.0\n\nacpitz - 59°C - all good\npch_skylake - 81°C - critical\nx86_pkg_temp - 62°C - getting hot\n\n```\n\n## Arguments\n\nEven if this file __MUST__ be sourced to be used, it support the following arguments:\n\n```console\n$ bash /path/to/bash_funcs -h\n\nUsage: bash_funcs [flags] -- Collection of Bash functions\n\nFlags:\n  -h | --help\t\tPrint this message and exit\n  -l | --list\t\tPrint list of included functions and exit\n  -v | --version\tPrint file version and exit\n\n```\n\n\u003e Note that there is a check included in the file that will be triggered if the 'exec' permission is being granted.\n\n## Thanks\n\nHuge thanks to the work made by the THC group for the inspiration.\n\n## Author\n\n* __Jiab77__\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiab77%2Fbash-funcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiab77%2Fbash-funcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiab77%2Fbash-funcs/lists"}