mirror of
https://mau.dev/andreijiroh-dev/dotfiles.git
synced 2025-01-19 06:56:39 +00:00
Support setting PROMPT_THEME to disabled
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>
This commit is contained in:
parent
adcca67efc
commit
d94b5c5da3
1 changed files with 3 additions and 1 deletions
4
.bashrc
4
.bashrc
|
@ -20,7 +20,9 @@ export GPG_TTY=$(tty)
|
||||||
if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
|
if command -v oh-my-posh >>/dev/null && [[ $FF_USE_OHMYPOSH != "false" ]]; then
|
||||||
eval "$(oh-my-posh init bash)"
|
eval "$(oh-my-posh init bash)"
|
||||||
else
|
else
|
||||||
if [[ $PROMPT_THEME != "" ]] && [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
|
if [[ $PROMPT_THEME == "disabled" ]]; then
|
||||||
|
true
|
||||||
|
elif [[ $PROMPT_THEME != "" ]] && [[ -f "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc" ]]; then
|
||||||
source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
|
source "$HOME/.config/bash/shell-prompts/${PROMPT_THEME}.bashrc"
|
||||||
else
|
else
|
||||||
source "$HOME/.config/bash/shell-prompts/vern.bashrc"
|
source "$HOME/.config/bash/shell-prompts/vern.bashrc"
|
||||||
|
|
Loading…
Reference in a new issue