File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 33
44_omb_module_require lib:omb-prompt-colors
55
6- function git_prompt_info() {
7- local ref
8- if [[ " $( command git config --get oh-my-bash.hide-status 2> /dev/null) " != " 1" ]]; then
9- ref=$( command git symbolic-ref HEAD 2> /dev/null) || \
10- ref=$( command git rev-parse --short HEAD 2> /dev/null) || return 0
11- echo " $OSH_THEME_GIT_PROMPT_PREFIX ${ref# refs/ heads/ } $( parse_git_dirty) $OSH_THEME_GIT_PROMPT_SUFFIX "
12- fi
13- }
6+ # # Note: The same name of a functionis defined in omb-prompt-base. We comment
7+ # # out this function for now.
8+ # function git_prompt_info() {
9+ # local ref
10+ # if [[ "$(command git config --get oh-my-bash.hide-status 2>/dev/null)" != "1" ]]; then
11+ # ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
12+ # ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
13+ # echo "$OSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$(parse_git_dirty)$OSH_THEME_GIT_PROMPT_SUFFIX"
14+ # fi
15+ # }
1416
1517# Checks if working tree is dirty
1618function parse_git_dirty() {
You can’t perform that action at this time.
0 commit comments