This commit is contained in:
Jonas Forsberg 2021-11-12 13:46:32 +01:00
parent 203e43863d
commit 00b4e97c83
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ function dotf(){
/usr/bin/git --git-dir="$HOME"/.dotfiles --work-tree="$HOME" "$@"
}
dotfiles_status(){
status_dotfiles(){
case $1 in
check_error)
result="$(/usr/bin/git --git-dir="$HOME"/.dotfiles --work-tree="$HOME" status --short 2> /dev/null)"

View File

@ -34,12 +34,12 @@ function bash_ps1 () {
fi
fi
if [[ $(type -t dotfiles_status) == function ]];then
if [[ $(dotfiles_status check_error) == YES ]];then
if [[ $(type -t status_dotfiles) == function ]];then
if [[ $(status_dotfiles check_error) == YES ]];then
DOTF="${COLOR_DOTF}E"
elif [[ $(dotfiles_status check_status) ]];then
elif [[ $(status_dotfiles check_status) ]];then
DOTF="${COLOR_DOTF}."
elif [[ $(dotfiles_status check_push) ]];then
elif [[ $(status_dotfiles check_push) ]];then
DOTF="${COLOR_DOTF}p"
fi
fi