{"id":22959437,"url":"https://github.com/nikitaivanovv/shortbashpwd","last_synced_at":"2026-05-20T14:17:02.889Z","repository":{"id":106301269,"uuid":"532641807","full_name":"NikitaIvanovV/shortbashpwd","owner":"NikitaIvanovV","description":"Shorter working directory in prompt like in fish shell","archived":false,"fork":false,"pushed_at":"2022-09-05T19:05:47.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T02:26:59.654Z","etag":null,"topics":["bash","bash-prompt","fish","fish-prompt","prompt"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/NikitaIvanovV.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":"2022-09-04T19:47:28.000Z","updated_at":"2022-09-05T09:45:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b648b25-6ee3-4ab3-91ba-41a766eb7534","html_url":"https://github.com/NikitaIvanovV/shortbashpwd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NikitaIvanovV/shortbashpwd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fshortbashpwd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fshortbashpwd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fshortbashpwd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fshortbashpwd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikitaIvanovV","download_url":"https://codeload.github.com/NikitaIvanovV/shortbashpwd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikitaIvanovV%2Fshortbashpwd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265645425,"owners_count":23804185,"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":["bash","bash-prompt","fish","fish-prompt","prompt"],"created_at":"2024-12-14T18:18:24.643Z","updated_at":"2026-05-20T14:16:57.833Z","avatar_url":"https://github.com/NikitaIvanovV.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shortbashpwd\n\nI'm kinda old fashioned and I still prefer bash.\nBut I tried using fish one day and\nI liked how it printed current working directory by default.\n\n![fish prompt](images/fish.png)\n\nThe prompt doesn't take a half of a screen width\nif you are working in some deeply nested directory\nbecause names of all the directories (except for the last one) are\nabbreviated.\n\nI wanted to have a similar thing in bash,\nso I made a script that does it:\n\n![bash prompt](images/bash.png)\n\n## Installation\n\n### Manual\n\n```sh\ngit clone https://github.com/NikitaIvanovV/shortbashpwd\ncd shortbashpwd\nsudo make install\n```\n\nAfter installing the script,\nyou have to add a few lines to your `.bashrc` file in order to\nactivate the script in your shell session on startup.\nYou can do it by running this:\n\n```sh\nmake bashrc\n```\n\nIt will add append [`bashrc.bash`](bashrc.bash) to your `.bashrc` and\nreplace `FILE` with a location where [`shortbashpwd.bash`](shortbashpwd.bash) was installed.\n\nUninstall with `sudo make uninstall`.\n\n### AUR\n\nIf you are an Arch Linux user, you can install\n[`shortbashpwd-git`](https://aur.archlinux.org/packages/shortbashpwd-git)\nAUR package.\n\n```sh\nyay -S shortbashpwd-git\n```\n\nAfter installing the package, you will be asked to\nrun one command manually to finish the installation ([read why](#manual)):\n\n```sh\ncat /usr/share/shortbashpwd/bashrc.bash \u003e\u003e ~/.bashrc\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaivanovv%2Fshortbashpwd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitaivanovv%2Fshortbashpwd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitaivanovv%2Fshortbashpwd/lists"}