Skip to content
Shell

feat: apply salmon color to all branches in statusline

Eddie Belavalb36aaec41343
diff --git a/statusline-command.sh b/statusline-command.sh
index d2b024f..68a8fad 100755
--- a/statusline-command.sh
+++ b/statusline-command.sh
@@ -36,12 +36,8 @@ if git -C "$current_dir" rev-parse --git-dir > /dev/null 2>&1; then
fi
if [ -n "$branch" ]; then
- # Color feature branches in salmon (feature/, fix/, hotfix/, bugfix/)
- if [[ "$branch" == feature/* || "$branch" == fix/* || "$branch" == hotfix/* || "$branch" == bugfix/* ]]; then
- git_info=" [git: \033[38;5;210m${branch}\033[2m${status}]"
- else
- git_info=" [git: ${branch}${status}]"
- fi
+ # Color all branches in salmon for visibility
+ git_info=" [git: \033[38;5;210m${branch}\033[2m${status}]"
fi
fi
diff --git a/statusline.sh b/statusline.sh
index 182c00a..d7f4655 100755
--- a/statusline.sh
+++ b/statusline.sh
@@ -39,14 +39,10 @@ if git -C "$cwd" rev-parse --git-dir > /dev/null 2>&1; then
git_status=""
fi
- # Color feature branches in salmon (feature/, fix/, hotfix/, bugfix/)
- if [[ "$branch" == feature/* || "$branch" == fix/* || "$branch" == hotfix/* || "$branch" == bugfix/* ]]; then
- salmon=$(printf '\033[38;5;210m')
- reset=$(printf '\033[0m')
- git_info=" (${salmon}${branch}${git_status}${reset})"
- else
- git_info=" (${branch}${git_status})"
- fi
+ # Color all branches in salmon for visibility
+ salmon=$(printf '\033[38;5;210m')
+ reset=$(printf '\033[0m')
+ git_info=" (${salmon}${branch}${git_status}${reset})"
fi
# Comet browser status (check if debug port is open)