Skip to content

Commit

Permalink
fix: removing deadcode and renaming variables
Browse files Browse the repository at this point in the history
  • Loading branch information
bgcicca committed Jan 26, 2025
1 parent cc6a620 commit a33fd5b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions themes/nekolight/nekolight.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ function _omb_theme_nekolight_git_info() {
local branch=$(_omb_prompt_git symbolic-ref --short HEAD 2>/dev/null || _omb_prompt_git rev-parse --short HEAD 2>/dev/null)

if _omb_prompt_git diff --quiet 2>/dev/null && _omb_prompt_git diff --cached --quiet 2>/dev/null; then
echo "${_omb_prompt_bold_green}${branch} ${_omb_theme_nekolight_symbol}${_omb_prompt_normal}"
_omb_util_print "${_omb_prompt_bold_green}${branch} ${_omb_theme_nekolight_symbol}${_omb_prompt_normal}"
else
echo "${_omb_prompt_bold_red}${branch} ${_omb_theme_nekolight_symbol}${_omb_prompt_normal}"
_omb_util_print "${_omb_prompt_bold_red}${branch} ${_omb_theme_nekolight_symbol}${_omb_prompt_normal}"
fi
else
echo ""
fi
}

Expand Down

0 comments on commit a33fd5b

Please sign in to comment.