Crates.io | messa |
lib.rs | messa |
version | 2.1.0 |
source | src |
created_at | 2021-10-17 05:50:06.787015 |
updated_at | 2021-10-18 13:23:14.109774 |
description | fast, width flexible, powerline-shell like prompt. |
homepage | |
repository | https://github.com/shosatojp/messa |
max_upload_size | |
id | 466105 |
size | 160,319 |
Width flexible shell prompt
Fast
normal directory | git directory |
---|---|
1.1 ms ± 0.2 ms | 5.2 ms ± 0.1ms |
measured with hyperfine
Configure with yaml
Supports ssh, git, kubernetes, datetime
messa
statically linked single binary from here
or Use cargo
cargo install messa
Bash
# ~/.bashrc
export PATH="$HOME/.cargo/bin:$PATH"
function create_prompt(){
PS1=$(messa --error $? --width $COLUMNS --user $USER --host $HOSTNAME --shell bash)
}
export PROMPT_COMMAND="create_prompt;$PROMPT_COMMAND"
Zsh
# ~/.zshrc
export PATH="$HOME/.cargo/bin:$PATH"
function create_prompt() {
PS1=$(messa --error $? --width $COLUMNS --user $USER --host $HOSTNAME --shell zsh)
}
precmd_functions+=(create_prompt)
Fish
# ~/.config/fish/config.fish
function fish_prompt
messa --error $status --width $COLUMNS --user $USER --host $HOSTNAME --shell fish
end
wget -O ~/.messa.yaml https://raw.githubusercontent.com/shosatojp/messa/master/.messa.yaml
. ~/.bashrc
cargo build
powerline-shell
(Python)powerline-go
(Go)