{"id":24535106,"url":"https://github.com/shosatojp/messa","last_synced_at":"2025-04-14T23:09:56.664Z","repository":{"id":46401256,"uuid":"257892558","full_name":"shosatojp/messa","owner":"shosatojp","description":"Width flexible powerline-shell like prompt","archived":false,"fork":false,"pushed_at":"2022-10-16T06:57:17.000Z","size":949,"stargazers_count":9,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-14T23:09:51.202Z","etag":null,"topics":["bash","powerline-shell","prompt","rust","shell"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/messa","language":"Rust","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/shosatojp.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":"2020-04-22T12:18:23.000Z","updated_at":"2024-09-02T16:56:07.000Z","dependencies_parsed_at":"2022-09-04T19:20:31.675Z","dependency_job_id":null,"html_url":"https://github.com/shosatojp/messa","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shosatojp%2Fmessa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shosatojp%2Fmessa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shosatojp%2Fmessa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shosatojp%2Fmessa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shosatojp","download_url":"https://codeload.github.com/shosatojp/messa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975316,"owners_count":21192210,"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","powerline-shell","prompt","rust","shell"],"created_at":"2025-01-22T12:15:12.194Z","updated_at":"2025-04-14T23:09:56.631Z","avatar_url":"https://github.com/shosatojp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# messa\n\n[![CI](https://github.com/shosatojp/messa/actions/workflows/ci.yml/badge.svg)](https://github.com/shosatojp/messa/actions/workflows/ci.yml)\n\n- Width flexible shell prompt\n- Fast\n\n    |normal directory|git directory|\n    |---|---|\n    |1.1 ms ± 0.2 ms|5.2 ms ± 0.1ms|\n\n    \u003e measured with [hyperfine](https://github.com/sharkdp/hyperfine)\n\n- Configure with yaml\n- Supports ssh, git, kubernetes, datetime\n\n![](messa.gif)\n\n![](messa.png)\n\n## Install\n\n### 1. Install `messa`\n\n- statically linked single binary from [here](https://github.com/shosatojp/messa/releases/latest)\n    ```sh\n    install -D -m 755 \u003c(curl -L https://github.com/shosatojp/messa/releases/download/v2.1.0/messa) ~/.local/bin/messa\n    ```\n    \n    \u003e You may need to modify PATH\n    \u003e ```\n    \u003e export PATH=\"$HOME/.local/bin:$PATH\"\n    \u003e ```\n\nOR\n\n- via `cargo`\n    - Requirements\n        - C Compiler\n          - `gcc`\n        - `pkg-config`\n        - OpenSSL Development Package\n          - Ubuntu/Debian: `libssl-dev`\n          - Fedora: `openssl-devel`\n        ```sh\n        # ubuntu\n        sudo apt-get install -y gcc pkg-config libssl-dev\n        ```\n\n    ```sh\n    cargo install messa\n    ```\n\n### 2. Append following code to your shell config file\n\n- **Bash**\n\n    ```sh\n    # ~/.bashrc\n    export PATH=\"$HOME/.cargo/bin:$PATH\"\n    function create_prompt(){\n        PS1=$(messa --error $? --width $COLUMNS --user $USER --host $HOSTNAME --shell bash)\n    }\n    export PROMPT_COMMAND=\"create_prompt;$PROMPT_COMMAND\"\n    ```\n\n- **Zsh**\n\n    ```sh\n    # ~/.zshrc\n    export PATH=\"$HOME/.cargo/bin:$PATH\"\n    function create_prompt() {\n        PS1=$(messa --error $? --width $COLUMNS --user $USER --host $HOSTNAME --shell zsh)\n    }\n    precmd_functions+=(create_prompt)\n    ```\n\n- **Fish**\n\n    ```sh\n    # ~/.config/fish/config.fish\n    function fish_prompt\n        messa --error $status --width $COLUMNS --user $USER --host $HOSTNAME --shell fish\n    end\n    ```\n\n- **Nushell** [🔗](https://www.nushell.sh/)\n\n    ```sh\n    # command in nushell\n    config set prompt \"messa --error 0 --width (tput cols) --user $nu.env.USER --host (hostname) --shell fish\"\n    ```\n\n### 3. Setup config\n\n```sh\nwget -O ~/.messa.yaml https://raw.githubusercontent.com/shosatojp/messa/master/.messa.yaml\n```\n\n### 4. Reload your shell\n\n```sh\n. ~/.bashrc\n```\n\n## Build\n\n```sh\ncargo build\n```\n\n## Related projects\n\n- [`powerline-shell`](https://github.com/b-ryan/powerline-shell) (Python)\n- [`powerline-go`](https://github.com/justjanne/powerline-go) (Go)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshosatojp%2Fmessa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshosatojp%2Fmessa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshosatojp%2Fmessa/lists"}