Skip to content

Commit 4781473

Browse files
author
Bhavi Dhingra
committed
style(gcommit): add reverse color
1 parent 3240fcc commit 4781473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmd/gcommit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#shellcheck disable=SC2155
44
#shellcheck disable=SC1091
5+
#shellcheck disable=SC2059
56

67
source "${__CUSTOM_GIT_UTIL}"/__assertgitrepo
78
source "${__CUSTOM_GIT_UTIL}"/fzf_headers/gcommit/__type_header
@@ -10,6 +11,7 @@ source "${__CUSTOM_GIT_UTIL}"/fzf_headers/gcommit/__description_header
1011
source "${__CUSTOM_CONSOLE_UTIL}"/__print_info
1112
source "${__CUSTOM_CONSOLE_UTIL}"/__print_as
1213
source "${__CUSTOM_CONSOLE_UTIL}"/__println_as
14+
source "${__CUSTOM_CONSOLE_UTIL}"/__common
1315

1416
function main() {
1517

@@ -153,7 +155,7 @@ function get_commit_description() {
153155

154156
function print_commit_msg() {
155157
__print_as "bold" "COMMIT MESSAGE:- "
156-
echo -n "${1}"
158+
printf "${REVERSE}${1}${RESET}"
157159
}
158160

159161
main

0 commit comments

Comments
 (0)