{"id":19320883,"url":"https://github.com/info-mono/pathshortener","last_synced_at":"2026-04-20T03:32:03.457Z","repository":{"id":134997280,"uuid":"365540425","full_name":"info-mono/pathshortener","owner":"info-mono","description":"✂️ File system's path shortener","archived":false,"fork":false,"pushed_at":"2022-01-08T09:05:46.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T16:53:29.848Z","etag":null,"topics":["basher","bpkg","cli","info-mono","path","path-shortener","posix","shortener","terminal"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/info-mono.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":"2021-05-08T14:52:26.000Z","updated_at":"2022-10-23T09:39:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"773b2f18-0459-4771-8512-b318c135d1a0","html_url":"https://github.com/info-mono/pathshortener","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/info-mono/pathshortener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fpathshortener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fpathshortener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fpathshortener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fpathshortener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/info-mono","download_url":"https://codeload.github.com/info-mono/pathshortener/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/info-mono%2Fpathshortener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031550,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["basher","bpkg","cli","info-mono","path","path-shortener","posix","shortener","terminal"],"created_at":"2024-11-10T01:33:06.899Z","updated_at":"2026-04-20T03:32:03.417Z","avatar_url":"https://github.com/info-mono.png","language":"Shell","funding_links":["https://www.buymeacoffee.com/nnbnh"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\u003ccode\u003e…/P/A/T/H/shortener\u003c/code\u003e\u003c/h1\u003e\n\u003cp align=\"center\"\u003eFile system's path shortener\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ca href=\"https://github.com/info-mono/pathshortener/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/info-mono/pathshortener?labelColor=383838\u0026color=585858\u0026style=for-the-badge\" alt=\"License: GPL-3.0\"\u003e\u003c/a\u003e \u003ca href=\"https://gist.github.com/NNBnh/9ef453aba3efce26046e0d3119dab5a7#development-completed\"\u003e\u003cimg src=\"https://img.shields.io/badge/development-completed-%23585858.svg?labelColor=383838\u0026style=for-the-badge\u0026logoColor=FFFFFF\" alt=\"Development completed\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## 💡 About\n`pathshortener` is a file system's path shortener written in [`portable sh`](https://github.com/dylanaraps/pure-sh-bible) inspired by [Fish's `prompt_pwd` command](https://fishshell.com/docs/current/cmds/prompt_pwd.html) and [Starship's Directory module](https://starship.rs/config/#directory).\n\n## 🚀 Setup\n### 🧾 Dependencies\n- [Unix commands](https://en.wikipedia.org/wiki/List_of_Unix_commands) to process\n\n### 📥 Installation\n#### 🔧 Manually\nOption 1: using `curl`\n```sh\ncurl https://raw.githubusercontent.com/info-mono/pathshortener/main/bin/pathshortener \u003e ~/.local/bin/pathshortener\nchmod +x ~/.local/bin/pathshortener\n```\n\nOption 2: using `git`\n```sh\ngit clone https://github.com/info-mono/pathshortener.git ~/.local/share/pathshortener\nln -s ~/.local/share/pathshortener/bin/pathshortener ~/.local/bin/pathshortener\n```\n\n#### 📦 Package manager\nFor [Bpkg](https://github.com/bpkg/bpkg) user:\n```sh\nbpkg install info-mono/pathshortener\n```\n\nFor [Basher](https://github.com/basherpm/basher) user:\n```sh\nbasher install info-mono/pathshortener\n```\n\n\u003e *If you can and want to port Pathshortener to other package managers, feel free to do so.*\n\n## ⌨️ Usage\nRun 'pathshortener' in the terminal:\n```sh\npathshortener PATHS\n```\n\n## ⚙️ Configuration\nPathshortener is configured through environment variables: `export PATHSHORTENER_\u003cSETTING\u003e=\"\u003cvalue\u003e\"`\n|Value                            |Valid      |Default|Description                                                                                           |\n|---------------------------------|-----------|-------|------------------------------------------------------------------------------------------------------|\n|`PATHSHORTENER_TRUNCATION_LENGTH`|`\u003cinteger\u003e`|`3`    |The number of parent folders that the current directory should be truncated to (set to `0` to disable)|\n|`PATHSHORTENER_SHORT_LENGTH`     |`\u003cinteger\u003e`|`0`    |The number of characters to display in truncated paths                                                |\n|`PATHSHORTENER_TRUNCATION_SYMBOL`|`\u003cstring\u003e` |`…/`   |The symbol to prefix to truncated paths                                                               |\n|`PATHSHORTENER_HOME_SYMBOL`      |`\u003cstring\u003e` |`~`    |The symbol indicating home directory                                                                  |\n\n## 💌 Credits\nSpecial thanks to:\n- [**Fish**](https://fishshell.com/docs/current/cmds/fish_status_to_signal.html) by [it's contributors](https://github.com/fish-shell/fish-shell/graphs/contributors)\n- [**Starship**](https://starship.rs) by [it's contributors](https://github.com/starship/starship/graphs/contributors)\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n---\n\n\u003e \u003ch1 align=\"center\"\u003eMade with ❤️ by \u003ca href=\"https://github.com/info-mono\"\u003e\u003ccode\u003e@info-mono\u003c/code\u003e\u003c/a\u003e\u003c/h1\u003e\n\u003e\n\u003e \u003cp align=\"center\"\u003e\u003ca href=\"https://www.buymeacoffee.com/nnbnh\"\u003e\u003cimg src=\"https://img.shields.io/badge/buy_me_a_coffee%20-%23F7CA88.svg?logo=buy-me-a-coffee\u0026logoColor=333333\u0026style=for-the-badge\" alt=\"Buy Me a Coffee\"\u003e\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfo-mono%2Fpathshortener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfo-mono%2Fpathshortener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfo-mono%2Fpathshortener/lists"}