From 00b4e97c838f227dd6af327dec88c7dedd70cf4b Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Fri, 12 Nov 2021 13:46:32 +0100 Subject: [PATCH] . --- .functions/dotfiles.sh | 2 +- .functions/ps1.sh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.functions/dotfiles.sh b/.functions/dotfiles.sh index 4c98fc7..e22eb40 100644 --- a/.functions/dotfiles.sh +++ b/.functions/dotfiles.sh @@ -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)" diff --git a/.functions/ps1.sh b/.functions/ps1.sh index d59fbdd..e22c023 100644 --- a/.functions/ps1.sh +++ b/.functions/ps1.sh @@ -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