{"id":13701940,"url":"https://github.com/rwxrob/z","last_synced_at":"2025-03-30T08:30:53.919Z","repository":{"id":57661100,"uuid":"473544195","full_name":"rwxrob/z","owner":"rwxrob","description":"🌳 Personal stateful command tree monolith with Bonzai","archived":false,"fork":false,"pushed_at":"2024-09-16T22:40:53.000Z","size":87,"stargazers_count":22,"open_issues_count":10,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T01:43:00.932Z","etag":null,"topics":["completion","dotfiles","go","golang","personal","scripts","tools","utilities"],"latest_commit_sha":null,"homepage":"https://rwxrob.github.io/zet/1729/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rwxrob.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":".github/FUNDING.yml","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},"funding":{"github":"rwxrob","patreon":"rwxrob","custom":["https://twitch.tv/rwxrob","https://youtube.com/rwxrob"]}},"created_at":"2022-03-24T09:47:49.000Z","updated_at":"2024-09-16T22:41:01.000Z","dependencies_parsed_at":"2024-01-17T18:57:31.895Z","dependency_job_id":"a3443088-013a-4909-a0c0-f5449347931f","html_url":"https://github.com/rwxrob/z","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwxrob%2Fz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwxrob","download_url":"https://codeload.github.com/rwxrob/z/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222535297,"owners_count":16999232,"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","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":["completion","dotfiles","go","golang","personal","scripts","tools","utilities"],"created_at":"2024-08-02T21:00:27.977Z","updated_at":"2024-11-01T07:02:11.816Z","avatar_url":"https://github.com/rwxrob.png","language":"Go","funding_links":["https://github.com/sponsors/rwxrob","https://patreon.com/rwxrob","https://twitch.tv/rwxrob","https://youtube.com/rwxrob"],"categories":["My Own Stuff"],"sub_categories":[],"readme":"# 🌳 Personal Bonzai Commandz\n\nThese days I prefer to maintain a single Go [stateful command tree monolith](https://rwxrob.github.io/zet/1729/) tool rather than a ton of shell scripts in whatever languages. In fact, I created [Bonzai](https://github.com/rwxrob/bonzai) specifically for this sort of thing. I just `curl` down a single binary to whatever system I'm on and I have all of my favorite functionality on *any* device with zero compatibility hassles and installation dependencies. Everything just works, *anywhere*.\n\n## Install\n\nJust download one of the [release binaries](https://github.com/rwxrob/z/releases):\n\n```\ncurl -L https://github.com/rwxrob/z/releases/latest/download/z-linux-amd64 -o ~/.local/bin/rwxrobz\ncurl -L https://github.com/rwxrob/z/releases/latest/download/z-darwin-amd64 -o ~/.local/bin/rwxrobz\ncurl -L https://github.com/rwxrob/z/releases/latest/download/z-darwin-arm64 -o ~/.local/bin/rwxrobz\ncurl -L https://github.com/rwxrob/z/releases/latest/download/z-windows-amd64 -o ~/.local/bin/rwxrobz\n```\n\nOr install directly with `go`:\n\n```\ngo install github.com/rwxrob/z@latest\n```\n\nNote: you'll have to remove `go.work` yourself if you want to use this build yourself (or clone all my structure the same way). I'm saving my `go.work` in this Go repo only because it is a personal build.\n\nI prefer to use `z` instead of setting up a multicall binary since the habits it builds into my muscle memory work on any operating system or device and it doesn't take too much space when using UNIX pipelines and\nsuch:\n\n```\necho $(z isosec) $(z y2j quotes.yaml | jq -r .mad )\n```\n\n## Tab Completion\n\nTo activate bash completion just use the `complete -C` option from your `.bashrc` or command line. There is no messy sourcing required. All the completion is done by the program itself.\n\n```\ncomplete -C z z\n```\n\nIf you don't have bash or tab completion check use the shortcut commands instead. Zsh does a good job of learning your commands over time all by itself, but some of the custom completions may not work as well. Personally, I prefer the default Linux shell (Bash) over the default Mac shell (Zsh). (PRs welcome to integrate completion into Zsh without dumping a ton of shell code that has to be sourced.)\n\n## Embedded Documentation\n\nAll documentation (like manual pages) has been embedded into the source code of the application. See the source or run the program with help to access it.\n\n## Building\n\nReleases are built using the following commands:\n\n```\nz go build\ngh release create\ngh release upload TAG build/*\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxrob%2Fz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwxrob%2Fz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwxrob%2Fz/lists"}