{"id":20727639,"url":"https://github.com/cwchentw/shlibs","last_synced_at":"2026-04-10T11:02:35.354Z","repository":{"id":77777980,"uuid":"223762024","full_name":"cwchentw/shlibs","owner":"cwchentw","description":"Tiny but Handy Aliases and Functions for Bourne Shell","archived":false,"fork":false,"pushed_at":"2024-04-11T04:59:13.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-25T23:25:01.194Z","etag":null,"topics":["bash","dotfiles","linux","posix","shell-aliases","shell-functions","shell-script","unix","zsh"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cwchentw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-24T15:00:45.000Z","updated_at":"2025-08-13T09:44:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c920839-1327-4917-9ded-0a58b161cc47","html_url":"https://github.com/cwchentw/shlibs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwchentw/shlibs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fshlibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fshlibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fshlibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fshlibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwchentw","download_url":"https://codeload.github.com/cwchentw/shlibs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fshlibs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31639524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","dotfiles","linux","posix","shell-aliases","shell-functions","shell-script","unix","zsh"],"created_at":"2024-11-17T04:33:04.312Z","updated_at":"2026-04-10T11:02:35.338Z","avatar_url":"https://github.com/cwchentw.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shlibs\n\nTiny but handy aliases and functions for Bourne shell compatible shell.\n\n## Warning\n\nCurrently, **shlibs** intends for personal use only. The content of shlibs may change without warning. Use it at your own risk.\n\n## Why shlibs?\n\nInstead of setting personal configuration files like *.bashrc* or *.zshrc* each time when approaching a new Unix or Unix-like system, it is easier to write common aliases and functions in an external shell script, sourcing it as needed. Therefore, we wrote **shlibs** as common utilities across Unix or Unix systems.\n\nThough **shlibs** is for personal use only, we keep it as general as possible, from which removing personal and private data. Hence, you may apply **shlibs** in your own machine.\n\n## System Requirements\n\n* A Bourne shell compatible shell\n* Standard POSIX tools\n* Perl\n\nWe tested shlibs against several Unix or Unix-like systems:\n\n* Ubuntu LTS 20.04\n* Rocky Linux 8.5\n* openSUSE Leap 15.3\n* macOS Big Sur\n* FreeBSD 13.0\n\nIt should work on other Unix or Unix-like systems as well.\n\n## Usage\n\nLoad *shlibs/load.sh* to enable it:\n\n```\n$ . path/to/shlibs/load.sh\n```\n\nLoad *shlibs/unload.sh* to disable it:\n\n```\n$ . path/to/shlibs/unload.sh\n```\n\n## Shell Functions in shlibs\n\n* `download`: download something with either `wget(1)` or `curl(1)`\n* `psquery`: query PID by text\n* `trims`: use `perl(1)` to remove trailing spases in source\n* `try`: try specific command multiple times\n\n### `try`\n\n`repeat` is a reserved word in Bash. Therefore, we name our function `try`.\n\nBy default, `try` try specific command for 5 times:\n\n```\n$ try wget -c https://example.com/path/to/software-0.1.tar.gz\n```\n\nYou may try your command more or less times:\n\n```\n$ try 3 wget -c https://example.com/path/to/software-0.1.tar.gz\n```\n\nYou may try your command until it succeeds with `0` or `-1` times:\n\n```\n$ try -1 wget -c https://example.com/path/to/software-0.1.tar.gz\n```\n\n## Shell Aliases in shlibs\n\n* `ls -F --color=auto`\n* `mv -i`\n* `cp -i`\n* `rm -i`\n* `mkdir -p`\n\n## Variables\n\n* Common console colors\n\n## Copyright\n\nCopyright (c) 2019-2021 ByteBard. Licensed under Apache 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Fshlibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwchentw%2Fshlibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Fshlibs/lists"}