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