summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/.bashrc_ps118
1 files changed, 9 insertions, 9 deletions
diff --git a/src/.bashrc_ps1 b/src/.bashrc_ps1
index 7c890d3..e0b2b97 100644
--- a/src/.bashrc_ps1
+++ b/src/.bashrc_ps1
@@ -30,17 +30,17 @@ function update_ps1 {
local folder="\[\e[1;33m\]\W\[\e[0m\]"
# Git status: green if up to date, red if ahead, yellow if dirty
- local git_status=""
- if git rev-parse --is-inside-work-tree &>/dev/null; then
- if [[ -z $(git status --porcelain 2>/dev/null) ]]; then
- git_status="\[\e[1;32m\](git)\[\e[0m\]" # clean
- else
- git_status="\[\e[1;31m\](git)\[\e[0m\]" # dirty
- fi
- fi
+ #local git_status=""
+ #if git rev-parse --is-inside-work-tree &>/dev/null; then
+ # if [[ -z $(git status --porcelain 2>/dev/null) ]]; then
+ # git_status="\[\e[1;32m\](git)\[\e[0m\]" # clean
+ # else
+ # git_status="\[\e[1;31m\](git)\[\e[0m\]" # dirty
+ # fi
+ #fi
# Build the prompt
- PS1="${open_bracket}${exit_display} ${user}-${hostname} ${folder}${git_status}${close_bracket}${symbol} "
+ PS1="${open_bracket}${exit_display} ${user}-${hostname} ${folder}${close_bracket}${symbol} "
}
# Update PS1 after every command