diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-11-24 17:17:12 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-11-24 17:17:12 +0100 |
commit | 420b61bf28bb9b8db166f5979a589547102258b8 (patch) | |
tree | 8886f3cdca7ee6795dccb0dfeb8d2ca913900378 /bash | |
parent | bee37840a646f03e834c92180ad366f382e2e9cc (diff) |
Add a bash prompt notification for dirty/outdated dotfiles.
Diffstat (limited to 'bash')
-rwxr-xr-x | bash/prompt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/prompt b/bash/prompt index b4a1b87..09a75c7 100755 --- a/bash/prompt +++ b/bash/prompt @@ -83,8 +83,10 @@ __prompt_func() { local prompt_usertype_sign="\\$" local prompt_git_branch="$white\$(__git_ps1)$normal" + local dotfiles_dirty="$red\$([ -f ~/.local/var/dotfiles/dirty ] && echo -n \\\!\ )$normal" + # # # # # # # # #FINAL PROMPT # # # # # # # # - echo -n "$prompt_opening_brace $prompt_username@$prompt_hostname_short $prompt_pwd_long$prompt_git_branch$prompt_closing_brace$prompt_usertype_sign " + echo -n "$prompt_opening_brace $dotfiles_dirty$prompt_username@$prompt_hostname_short $prompt_pwd_long$prompt_git_branch$prompt_closing_brace$prompt_usertype_sign " } |