{"id":22297495,"url":"https://github.com/rustonaut/prompty","last_synced_at":"2025-03-25T22:43:48.416Z","repository":{"id":84690049,"uuid":"160987081","full_name":"rustonaut/prompty","owner":"rustonaut","description":"My rusty bash prompt command.","archived":false,"fork":false,"pushed_at":"2020-05-30T00:20:08.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T20:14:52.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rustonaut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-12-08T23:19:01.000Z","updated_at":"2020-06-01T06:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c96bb2a-ca01-4a86-a272-4cc9014dc4c8","html_url":"https://github.com/rustonaut/prompty","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustonaut%2Fprompty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustonaut%2Fprompty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustonaut%2Fprompty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rustonaut%2Fprompty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rustonaut","download_url":"https://codeload.github.com/rustonaut/prompty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556960,"owners_count":20634889,"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":[],"created_at":"2024-12-03T17:49:57.507Z","updated_at":"2025-03-25T22:43:48.397Z","avatar_url":"https://github.com/rustonaut.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Prompy\n\nIs _my_ bash prompt written in rust.\n\nIt's also a playground I used to learn a bit more\nabout a certain architectural design which is in\na certain way total over engineering for a bash\nprompt command.\n\nAs this is solely meant for personal use this only\nruns on linux, might not be compatible with all terminals\nand might not work with a non-bash shell.\n\nI will response to issues but if the issue doesn't affect\nme the response is not unlikely something on the line\nof \"I apologize but I won't fix this/add this feature\".\n\n# Usage\n\nFor trying it out use:\n\n`\u003e eval $(cargo run --release -- --bash-setup)`\n\nFor a more permanent setup:\n\n1. build the binary `cargo build --release`\n2. get binary from `./target/release/prompty`\n3. add following to `.bashrc`: `eval $(prompty --bash-setup)`\n   Where `prompty` should be a path to the `prompty` binary.\n\nThe `--bash-setup` option makes `prompty` a bash snipped consisting of:\n\n1. A assignment to `PS1` in a form similar to `PS1='$(prompty $COLUMN)'.\n   Note that instead of `prompty` a absolute path the the `prompty` binary will be\n   used determined by rusts `std::env::current_exec()` function.\n2. Add a function called `g` which works like `cd` but will set the `__PS_PATH_TOP`\n   environment variable, which prompty uses to trim the displayed current working\n   dir (if possible, if not it will try the value of `$HOME` if not it just displays\n   the full path).\n   - note that the `g` function is likely to be extended/changed in the future and\n     might collide with your own aliases/programs. A non hard-coded config is possible\n     but currently not given as I simply don't need it.\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustonaut%2Fprompty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustonaut%2Fprompty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustonaut%2Fprompty/lists"}