Shell
feat: extend salmon color to all feature branch prefixes
Eddie Belaval36e97c70b8e1
diff --git a/statusline-command.sh b/statusline-command.shindex 74f95ea..d2b024f 100755--- a/statusline-command.sh+++ b/statusline-command.sh@@ -36,8 +36,8 @@ if git -C "$current_dir" rev-parse --git-dir > /dev/null 2>&1; thenfiif [ -n "$branch" ]; then- # Color feature branches in salmon- if [[ "$branch" == feature/* ]]; then+ # Color feature branches in salmon (feature/, fix/, hotfix/, bugfix/)+ if [[ "$branch" == feature/* || "$branch" == fix/* || "$branch" == hotfix/* || "$branch" == bugfix/* ]]; thengit_info=" [git: \033[38;5;210m${branch}\033[2m${status}]"elsegit_info=" [git: ${branch}${status}]"diff --git a/statusline.sh b/statusline.shindex 0bbb443..182c00a 100755--- a/statusline.sh+++ b/statusline.sh@@ -39,8 +39,8 @@ if git -C "$cwd" rev-parse --git-dir > /dev/null 2>&1; thengit_status=""fi- # Only color feature branches in salmon- if [[ "$branch" == feature/* ]]; then+ # Color feature branches in salmon (feature/, fix/, hotfix/, bugfix/)+ if [[ "$branch" == feature/* || "$branch" == fix/* || "$branch" == hotfix/* || "$branch" == bugfix/* ]]; thensalmon=$(printf '\033[38;5;210m')reset=$(printf '\033[0m')git_info=" (${salmon}${branch}${git_status}${reset})"