global: Use "command" to run "git" and "svn"

This commit is contained in:
Koichi Murase
2022-02-22 17:49:25 +09:00
parent d3e6411f54
commit 897876eae1
11 changed files with 37 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ GIT_SHA_PREFIX=" ${_omb_prompt_olive}"
GIT_SHA_SUFFIX="${_omb_prompt_reset_color}"
function git_short_sha() {
SHA=$(git rev-parse --short HEAD 2> /dev/null) && echo "$GIT_SHA_PREFIX$SHA$GIT_SHA_SUFFIX"
SHA=$(command git rev-parse --short HEAD 2> /dev/null) && echo "$GIT_SHA_PREFIX$SHA$GIT_SHA_SUFFIX"
}
function _omb_theme_PROMPT_COMMAND() {