{"id":26395675,"url":"https://github.com/tamada/sibling","last_synced_at":"2026-01-26T02:17:46.188Z","repository":{"id":46106329,"uuid":"269517764","full_name":"tamada/sibling","owner":"tamada","description":"get next/previous sibling directory name.","archived":false,"fork":false,"pushed_at":"2025-07-18T08:31:43.000Z","size":220,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T19:46:37.835Z","etag":null,"topics":["bash","directory-traversal","utility"],"latest_commit_sha":null,"homepage":"https://tamada.github.io/sibling","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamada.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-06-05T03:01:09.000Z","updated_at":"2025-07-18T08:31:39.000Z","dependencies_parsed_at":"2024-06-21T07:23:39.597Z","dependency_job_id":"055f688e-8fef-47cc-a9b2-0ecdf3ef8ec9","html_url":"https://github.com/tamada/sibling","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/tamada/sibling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamada%2Fsibling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamada%2Fsibling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamada%2Fsibling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamada%2Fsibling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamada","download_url":"https://codeload.github.com/tamada/sibling/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamada%2Fsibling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28663793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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","directory-traversal","utility"],"created_at":"2025-03-17T11:18:58.279Z","updated_at":"2026-01-26T02:17:46.183Z","avatar_url":"https://github.com/tamada.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sibling\n\n[![build](https://github.com/tamada/sibling/actions/workflows/build.yaml/badge.svg)](https://github.com/tamada/sibling/actions/workflows/build.yaml)\n[![Coverage Status](https://coveralls.io/repos/github/tamada/sibling/badge.svg?branch=main)](https://coveralls.io/github/tamada/sibling?branch=main)\n\n[![Rust Report Card](https://rust-reportcard.xuri.me/badge/github.com/tamada/sibling)](https://rust-reportcard.xuri.me/report/github.com/tamada/sibling)\n\n[![crates.io](https://img.shields.io/badge/crates.io-v2.0.4-orange.svg?logo=rust)](https://crates.io/crates/sibling)\n[![License](https://img.shields.io/badge/License-WTFPL-information.svg)](https://github.com/tamada/sibling/blob/master/LICENSE)\n[![Version](https://img.shields.io/badge/Version-v2.0.4-information.svg)](https://github.com/tamada/sibling/releases/tag/v2.0.4)\n\nget the next/previous sibling directory name.\n\n## :speaking_head: Description\n\nWhen a directory has too many sub-directories, we are tiresome to traverse the whole of sub-directories.\nBecause, sometimes we lose where we are.\nIdeally, we move the directory by specifying ‘next’ or ‘previous,' not the directory name.\n\nThe command like the following makes us tired :-1:.\n\n    cd ../next_directory_name\n\nWe should type the command like below :+1:.\n\n    cdnext\n\nFor this, I implemented `sibling`.\n\n## Utility commands\n\nThe `sibling` introduces the following utility commands.\n\n- change the working directory to the sibling directory:\n  - `cdnext`,\n  - `cdprev`,\n  - `cdfirst`,\n  - `cdlast`, and\n  - `cdrand`\n- list the sibling directory:\n  - `lsnext`,\n  - `lsprev`,\n  - `lsfirst`,\n  - `lslast`, and\n  - `lsrand`\n\nThe `cdnext` and the `cdprev` allow the integer argument to repeat the traversing.\n\n## :runner: Usage\n\n`sibling` prints the next directory name with 0 status code.\nThe next directory is decided by the traversing type. Available values are: `next`, `previous`, `first`, `last`, `keep` and `random`, default is `next`.\n\nAfter visiting the final directory, the `sibling` prints nothing and exits with a non-zero status code.\n\n## :anchor: Installation\n\n### :beer: Homebrew\n\nInstall `sibling` via [Homebrew](https://brew.sh), simply run:\n\n```bash\nbrew tap tamada/brew\nbrew install sibling\n```\n\nAnd put the following snipeets into your shell profile (e.g., `.bash_profile`, or `.zshrc`)\nThe `--init` option accepts only `bash`.\nOther shell scripts are not supported, yet.\n\n```bash\neval \"$(sibling --init bash)\"\n```\n\n### :muscle: Compiling yourself\n\nGet source codes by `git clone` or download from [GitHub](https://github.com/tamada/sibling),\nthen run `cargo build` to build `sibling`.\n\n```shell\ngit clone https://github.com/tamada/sibling.git # or download from https://github.com/tamada/sibling\ncd sibling\ncargo build --release # the binary file is put on target/release/sibling.\n```\n\n## :smile: About the project\n\n### :scroll: License\n\n- [WTFPL](https://github.com/tamada/sibling/blob/master/LICENSE)\n  - :+1: Commercial use\n  - :+1: Modification\n  - :+1: Distribution\n  - :+1: Private use\n\n### :man_office_worker: Developers :woman_office_worker:\n\n- [Haruaki Tamada](https://tamada.github.io)\n\n### :link: Useful links for directory traversing\n\n- [cdargs](https://github.com/cbxbiker61/cdargs)\n  - Directory bookmarking system - Enhanced cd utilities\n- [Is there a directory history for bash?](https://superuser.com/questions/299694/is-there-a-directory-history-for-bash)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamada%2Fsibling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamada%2Fsibling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamada%2Fsibling/lists"}