Last active
October 14, 2025 12:47
-
-
Save rg3915/2d050e62edffcb5094c73b19beca4632 to your computer and use it in GitHub Desktop.
my bash-it bashit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # shellcheck shell=bash | |
| # shellcheck disable=SC2034 # Expected behavior for themes. | |
| SCM_THEME_PROMPT_DIRTY=" ${red?}✗" | |
| SCM_THEME_PROMPT_CLEAN=" ${bold_green?}✓" | |
| SCM_THEME_PROMPT_PREFIX=" (" | |
| SCM_THEME_PROMPT_SUFFIX="${green?})" | |
| GIT_THEME_PROMPT_DIRTY=" ${red?}✗" | |
| GIT_THEME_PROMPT_CLEAN=" ${bold_green?}✓" | |
| GIT_THEME_PROMPT_PREFIX="${green?}|" | |
| GIT_THEME_PROMPT_SUFFIX="${green?}|" | |
| VIRTUALENV_THEME_PROMPT_PREFIX="(" | |
| VIRTUALENV_THEME_PROMPT_SUFFIX=") " | |
| function prompt_command() { | |
| PS1="${yellow?}$(python_version_prompt) " # Name of virtual env followed by python version | |
| PS1+="${blue?}\w " | |
| PS1+="${green?}$(scm_prompt_info) " | |
| PS1+="${green?}\$ ${reset_color?}" | |
| } | |
| safe_append_prompt_command prompt_command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
