{"id":21466554,"url":"https://github.com/permafrost-dev/compress-path","last_synced_at":"2026-04-16T19:39:14.892Z","repository":{"id":61627738,"uuid":"546662828","full_name":"permafrost-dev/compress-path","owner":"permafrost-dev","description":"Compress a path to a shorter string, for use in terminal prompts.","archived":false,"fork":false,"pushed_at":"2025-05-12T19:44:29.000Z","size":316,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T20:49:50.483Z","etag":null,"topics":["cli","cwd","go","prompt","terminal","zsh"],"latest_commit_sha":null,"homepage":"","language":"Go","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/permafrost-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":{"{\"project.github.user\" =\u003e nil}":null}}},"created_at":"2022-10-06T12:50:23.000Z","updated_at":"2025-05-12T19:44:31.000Z","dependencies_parsed_at":"2023-12-04T20:26:49.859Z","dependency_job_id":"fc7f2cc5-06dd-4e98-b33d-85f48dc77f5e","html_url":"https://github.com/permafrost-dev/compress-path","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"permafrost-dev/go-project-template","purl":"pkg:github/permafrost-dev/compress-path","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fcompress-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fcompress-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fcompress-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fcompress-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/permafrost-dev","download_url":"https://codeload.github.com/permafrost-dev/compress-path/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fcompress-path/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278322183,"owners_count":25967873,"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-04T02:00:05.491Z","response_time":63,"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":["cli","cwd","go","prompt","terminal","zsh"],"created_at":"2024-11-23T08:14:36.233Z","updated_at":"2025-10-04T13:45:56.048Z","avatar_url":"https://github.com/permafrost-dev.png","language":"Go","funding_links":["https://github.com/sponsors/[\"{\\\"project.github.user\\\" =\u003e nil}\", nil]"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg style=\"height: 75px; width: auto\" src=\"https://user-images.githubusercontent.com/5508707/194621868-c41519e6-4499-435d-a559-6f5719f7ed98.png\" alt=\"logo\" /\u003e\n\u003c/p\u003e\n\n# compress-path\n\n[![Release](https://img.shields.io/github/release/permafrost-dev/compress-path.svg)](https://github.com/permafrost-dev/compress-path/releases/latest) [![Go Report Card](https://goreportcard.com/badge/github.com/permafrost-dev/compress-path)](https://goreportcard.com/report/github.com/permafrost-dev/compress-path) [![Maintainability](https://api.codeclimate.com/v1/badges/65f5deac2eb526f18df7/maintainability)](https://codeclimate.com/github/permafrost-dev/compress-path/maintainability) ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/permafrost-dev/compress-path?logo=code-climate)\n\n---\n\nCompress and abbreviate the parts of a pathname into a shorter overall string; for use within a Zsh prompt. Adds some minor styling, such as bold text for the last path section (the current directory).\n\n![image](https://user-images.githubusercontent.com/5508707/194622385-96e6e616-5cfa-4305-9e11-311f28f64432.png)\n\n## Setup\n\nDownload and extract `compress-path` to your `$PATH`. Then, add the following to your `.zshrc`:\n\n```bash\nexport PS1='$(compress-path) \u003e'\n```\n\nIf you're using `oh-my-zsh`, edit your `~/.oh-my-zsh/your-theme.zsh-theme` and modify the `prompt_dir` (or similar) function to look something like this:\n\n```bash\nprompt_dir() {\n  prompt_segment blue $CURRENT_FG $(compress-path)\n}\n```\n\n## Building from source\n\n`compress-path` prefers `task` for running tasks - see [taskfile.dev](https://taskfile.dev) for more information. If you don't have `task` installed, you can use `make` instead.\n\n```bash\ntask build\n# or\nmake build\n```\n\n---\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Patrick Organ](https://github.com/patinthehat)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermafrost-dev%2Fcompress-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpermafrost-dev%2Fcompress-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermafrost-dev%2Fcompress-path/lists"}