.
This commit is contained in:
parent
203e43863d
commit
00b4e97c83
@ -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)"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user