Move last little bit of script into a function so local is available

master
Erik Pukinskis 12 years ago
parent 4ae01ea30b
commit 8e61b80584
  1. 4
      gitprompt.sh

@ -277,6 +277,7 @@ function prompt_callback_default {
return return
} }
function run {
if [ "`type -t prompt_callback`" = 'function' ]; then if [ "`type -t prompt_callback`" = 'function' ]; then
prompt_callback="prompt_callback" prompt_callback="prompt_callback"
else else
@ -307,3 +308,6 @@ fi
git_prompt_dir git_prompt_dir
source "$__GIT_PROMPT_DIR/git-prompt-help.sh" source "$__GIT_PROMPT_DIR/git-prompt-help.sh"
}
run
Loading…
Cancel
Save