gitbash 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -109,37 +109,39 @@ require_git_repo() {
109
109
  }
110
110
 
111
111
  # Get delta arguments based on theme setting
112
- # Uses GITBASH_THEME: auto (default), dark, or light
112
+ # Uses GITBASH_THEME: light (default), dark, or auto
113
113
  _get_delta_args() {
114
- local theme="${GITBASH_THEME:-auto}"
114
+ local theme="${GITBASH_THEME:-light}"
115
115
  case "$theme" in
116
- light)
117
- echo "--light"
118
- ;;
119
116
  dark)
120
117
  echo "--dark"
121
118
  ;;
122
- *)
123
- # auto - let delta detect (no args needed, but we can add --light for lighter terminals)
119
+ auto)
120
+ # auto - let delta detect
124
121
  echo ""
125
122
  ;;
123
+ *)
124
+ # light is default
125
+ echo "--light"
126
+ ;;
126
127
  esac
127
128
  }
128
129
 
129
130
  # Get bat arguments based on theme setting
130
131
  _get_bat_args() {
131
- local theme="${GITBASH_THEME:-auto}"
132
+ local theme="${GITBASH_THEME:-light}"
132
133
  case "$theme" in
133
- light)
134
- echo "--theme=GitHub"
135
- ;;
136
134
  dark)
137
135
  echo "--theme=Dracula"
138
136
  ;;
139
- *)
137
+ auto)
140
138
  # auto - let bat detect
141
139
  echo ""
142
140
  ;;
141
+ *)
142
+ # light is default
143
+ echo "--theme=GitHub"
144
+ ;;
143
145
  esac
144
146
  }
145
147
 
@@ -134,9 +134,7 @@ EOF
134
134
  return 1
135
135
  fi
136
136
 
137
- local type_options
138
- type_options=$(cat << 'TYPES'
139
- feat - A new feature
137
+ local type_options="feat - A new feature
140
138
  fix - A bug fix
141
139
  docs - Documentation only changes
142
140
  style - Code style changes (formatting, whitespace)
@@ -145,9 +143,7 @@ perf - Performance improvement
145
143
  test - Adding or fixing tests
146
144
  build - Build system or dependency changes
147
145
  ci - CI/CD configuration changes
148
- chore - Other changes that don't modify src/test files
149
- TYPES
150
- )
146
+ chore - Other changes that don't modify src/test files"
151
147
 
152
148
  local selected_type
153
149
  selected_type=$(echo "$type_options" | fzf --prompt="Commit type > " \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitbash",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Opinionated git utilities for bash with fzf-powered menus",
5
5
  "author": "jaggli",
6
6
  "license": "MIT",