This project provides:
- A powerlevel10k-like prompt style of bash.
- A wakatime plugin to statistic how much time you write bash in REPL.
- gitstatus: provide git status
- wakatime-cli
paru -S bash-prompt-gitnix-env -iA nixos.nur.repos.Freed-Wu.bash-prompt~/.bashrc:
. /the/path/of/this/plugin/prompt.sh
# GNU/Linux
. /usr/share/bash-prompt/prompt.sh
# NixOS
. /run/current-system/sw/share/bash-prompt/prompt.sh
# Nix
. "${XDG_STATE_HOME:-$HOME/.local/state}/nix/profile/share/bash-prompt/prompt.sh"By default, it will enable wakatime. You can disable it by removing
prompt_wakatime from $PROMPT_COMMAND.
By default, it will not change your prompt. You should enable it by:
PS1="$(prompt_get_ps1)"
# or you can customize
PS1="$(prompt_get_ps1 [prompt_string] [[format] fg_color:bg_color:text [sep]] ...)"See
powerline-extra-symbols
for sep.
text can be:
"$prompt_icon": icon of OS'${GITSTATUS_PROMPT}': git status information. See gitstatus to know how to customize it.- prompt escape code
fg_color/bg_color can be color name or color value.
See Color Handling of
man 5 terminfo.

