{"id":20350503,"url":"https://github.com/alegrey91/psone","last_synced_at":"2026-05-04T17:34:42.272Z","repository":{"id":46004385,"uuid":"419095844","full_name":"alegrey91/psone","owner":"alegrey91","description":"A funny utility to manage your PS1 variable.","archived":false,"fork":false,"pushed_at":"2022-01-12T17:37:09.000Z","size":4879,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-04T16:37:55.430Z","etag":null,"topics":["bash","golang","linux"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alegrey91.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}},"created_at":"2021-10-19T21:27:02.000Z","updated_at":"2022-10-23T16:51:20.000Z","dependencies_parsed_at":"2022-09-23T08:40:40.887Z","dependency_job_id":null,"html_url":"https://github.com/alegrey91/psone","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/alegrey91/psone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fpsone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fpsone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fpsone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fpsone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alegrey91","download_url":"https://codeload.github.com/alegrey91/psone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alegrey91%2Fpsone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32617983,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","golang","linux"],"created_at":"2024-11-14T22:30:55.239Z","updated_at":"2026-05-04T17:34:42.243Z","avatar_url":"https://github.com/alegrey91.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PSOne\n\n![psone_icon](./Playstation_icon.png)\n\n## Introduction\n\nAre you a **Veteran Unix Admin**? If so, you probably know the charm of the `PS1` environment variable.\n\nFor a deep focus I suggest you to take a look at this: https://en.wikipedia.org/wiki/Command-line_interface#Command_prompt.\n\n## Why\n\nThe main reason why I decided to implement this utility is my fetishism for `PS1`. I like to customize this and change it for the right occasion, like to wear an elegant dress for your birthday 😄.\n\n## How\n\nThe `psone` utility help you to manage different `PS1` storing them to a config file (`~/.psone.yaml`).\n\nWhenever you want, you can **add**, **remove**, **set**, or **get** them. Once you set your favourite `PS1`, to apply your modification, just `source ~/.bashrc`.\n\n## Examples\n\nFist of all, you need to generate your own `~/.psone.yaml` file. Here's an example of it:\n\n```yaml\npsones:\n  default:\n    value: \"[\\\\u@\\\\h \\\\W]\\\\$ \"\n  halloween:\n    value: \"[\\\\u@\\\\h] 🎃👻🦇 \u003e \\\\[$(tput sgr0)\\\\]\"\n  christmas:\n    value: \"[\\\\u@\\\\h] 🎅🎄❄️ \\\\[\\\\]\"\n```\n\nOnce you got your config file, you are ready to set your custom `PS1`. \n\n```bash\npsone set halloween \u0026\u0026 source ~/.bashrc\n```\n\nThis is going to be your result: `[user@laptop] 🎃👻🦇 \u003e `.\n\nThen, if you want to add a new one (the easter one):\n\n```bash\npsone add \"easter\" \"[\\\\u@\\\\h] 🐇🥚 \\\\[\\\\]\"\n```\n\nHere's the new updated `PS1`s list:\n\n```bash\npsone get\n```\n\n```yaml\npsones:\n  default:\n    value: \"[\\u@\\h \\W]\\$ \"\n  easter:\n    value: \"[\\u@\\h] 🐇🥚 \\[\\]\"\n  halloween:\n    value: \"[\\u@\\h] 🎃👻🦇 \u003e \\[$(tput sgr0)\\]\"\n  christmas:\n    value: \"[\\u@\\h] 🎅🎄❄️ \\[\\]\"\n```\n\nThat's it.\n\nFor more information, just type: `psone help`.\n\n## Installation\n\nJust type the following command:\n\n```bash\nmake\n```\n\nor alternatively download the latest release from here: https://github.com/alegrey91/psone/releases\n\n## Contributions\n\nOf course, contributions are very welcome!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Fpsone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falegrey91%2Fpsone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falegrey91%2Fpsone/lists"}