~ changed variables names to uppercase

This commit is contained in:
Marcel Hoyer 2012-01-22 23:47:39 +01:00
commit 0992a4ba59

View file

@ -1,11 +1,11 @@
SCM_DEBUG=yes # comment line to disable debugging SCM_DEBUG=yes # comment line to disable debugging
declare -A _scm_prompt_chars declare -A _SCM_PROMPT_CHARS
_scm_types=(git hg svn) && export _scm_types _SCM_TYPES=(git hg svn) && export _SCM_TYPES
_scm_prompt_chars[git]=± _SCM_PROMPT_CHARS[git]=±
_scm_prompt_chars[hg]=ʜɢ _SCM_PROMPT_CHARS[hg]=ʜɢ
_scm_prompt_chars[svn]=svn _SCM_PROMPT_CHARS[svn]=svn
function _scm_debug { [ $SCM_DEBUG ] && echo $* >&2 } function _scm_debug { [ $SCM_DEBUG ] && echo $* >&2 }
@ -13,7 +13,7 @@ function _scm_debug { [ $SCM_DEBUG ] && echo $* >&2 }
function _scm_get_scm_type { function _scm_get_scm_type {
[[ "$1" = "/" ]] && return 1 [[ "$1" = "/" ]] && return 1
for type ($_scm_types) { for type ($_SCM_TYPES) {
[ ! -d "$1/.$type" ] && continue [ ! -d "$1/.$type" ] && continue
export SCM_ROOT="$1" export SCM_ROOT="$1"
@ -46,5 +46,6 @@ function scm_detect_root {
function scm_prompt_char() { function scm_prompt_char() {
[ ! $SCM_TYPE ] && return [ ! $SCM_TYPE ] && return
echo $_scm_prompt_chars[$SCM_TYPE] echo $_SCM_PROMPT_CHARS[$SCM_TYPE]
} }