Source code is using spaces rather than tabs (I'm feeling weird... Is it the right choice?)
This commit is contained in:
parent
1d2bf8ac66
commit
7fc8248e47
3
base.sh
Executable file → Normal file
3
base.sh
Executable file → Normal file
@ -1,4 +1,3 @@
|
||||
|
||||
function enrich {
|
||||
flag=$1
|
||||
symbol=$2
|
||||
@ -13,7 +12,6 @@ function enrich {
|
||||
}
|
||||
|
||||
function build_prompt {
|
||||
|
||||
PS1=""
|
||||
# Git info
|
||||
current_commit_hash=$(git rev-parse HEAD 2> /dev/null)
|
||||
@ -32,7 +30,6 @@ function build_prompt {
|
||||
|
||||
git_status=$(git status --porcelain 2> /dev/null)
|
||||
|
||||
|
||||
if [[ $git_status =~ ($'\n'|^).M ]]; then has_modifications=true; else has_modifications=false; fi
|
||||
|
||||
if [[ $git_status =~ ($'\n'|^)M ]]; then has_modifications_cached=true; else has_modifications_cached=false; fi
|
||||
|
Loading…
Reference in New Issue
Block a user