Skip to content

Commit

Permalink
fix(themes): fix regext
Browse files Browse the repository at this point in the history
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
  • Loading branch information
bgcicca and akinomyoga authored Jan 22, 2025
1 parent 8badf19 commit 217b535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/nekonight/nekonight-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ 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]+\s[0-9]+$'; then
if 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

Expand Down

0 comments on commit 217b535

Please sign in to comment.