Skip to content

Commit

Permalink
refactor(): renaming all instances of git to _omb_prompt_git
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoCiccarino committed Jan 23, 2025
1 parent b6391be commit 133a12f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions themes/nekonight/nekonight.base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ function _omb_theme_nekonight_git_prompt_info() {
function _omb_theme_nekonight_scm_git_status() {
local git_status=""

if git rev-list --count --left-right @{upstream}...HEAD 2>&- | grep -Eq '^[0-9]+[[:blank:]][0-9]+$'; then
if _omb_prompt_git rev-list --count --left-right @{upstream}...HEAD 2>&- | grep -Eq '^[0-9]+[[:blank:]][0-9]+$'; then
git_status+="${_omb_prompt_brown}${_omb_prompt_normal} "
fi

if [[ -n $(git diff --cached --name-status 2>&-) ]]; then
if [[ -n $(_omb_prompt_git diff --cached --name-status 2>&-) ]]; then
git_status+="${_omb_prompt_green}+${_omb_prompt_normal}"
fi

if [[ -n $(git diff --name-status 2>&-) ]]; then
if [[ -n $(_omb_prompt_git diff --name-status 2>&-) ]]; then
git_status+="${_omb_prompt_yellow}${_omb_prompt_normal}"
fi

if [[ -n $(git ls-files --others --exclude-standard 2>&-) ]]; then
if [[ -n $(_omb_prompt_git ls-files --others --exclude-standard 2>&-) ]]; then
git_status+="${_omb_prompt_red}${_omb_prompt_normal}"
fi

Expand Down

0 comments on commit 133a12f

Please sign in to comment.