Skip to content

Commit

Permalink
Changes Prompt color to Brightgreen and BrightRed
Browse files Browse the repository at this point in the history
  • Loading branch information
athul committed Jan 11, 2020
1 parent 5ca8933 commit 1e7f9ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Add this to your `.bashrc` file:
```bash
prompt_shelby_load() {
if [ $? != 0 ]; then
local prompt_symbol="\[\e[0;31m\]❯\[\e[0m\]"
local prompt_symbol="\[\e[0;91m\]❯\[\e[0m\]"
else
local prompt_symbol="\[\e[0;32m\]❯\[\e[0m\]"
local prompt_symbol="\[\e[0;92m\]❯\[\e[0m\]"
fi

PS1="$(~/.local/bin/shelby)\n${prompt_symbol} "
Expand All @@ -62,11 +62,11 @@ Add this to your `.zshrc` file:

```zsh
autoload -Uz add-zsh-hook
prompt_shelby_load() { ~/.local/bin/shelby }
add-zsh-hook precmd prompt_shelby_load

prompt_shelby_cmd() { ~/.local/bin/shelby }
add-zsh-hook precmd prompt_shelby_cmd
prompt_symbol=''
PROMPT="%(?.%F{green}.%F{red})${prompt_symbol}%f "

PROMPT=$'%(?.%{\e[92m%}.%{\e[91m%})${prompt_symbol}%f'
```
Expand Down

0 comments on commit 1e7f9ba

Please sign in to comment.