Shell
feat: apply salmon color to all branches in statusline
Eddie Belavalb36aaec41343
diff --git a/statusline-command.sh b/statusline-command.shindex 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; thenfiif [ -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}]"fifidiff --git a/statusline.sh b/statusline.shindex 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; thengit_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)