|
|
@ -292,7 +292,7 @@ Second, format how the above attributes are displayed in prompts.
|
|
|
|
'prompt' ' git(%b)' \
|
|
|
|
'prompt' ' git(%b)' \
|
|
|
|
'rprompt' '[%R]'
|
|
|
|
'rprompt' '[%R]'
|
|
|
|
|
|
|
|
|
|
|
|
Last, add `$git_info[prompt]` to `$PROMPT` and `$git_info[prompt]` to
|
|
|
|
Last, add `$git_info[prompt]` to `$PROMPT` and `$git_info[rprompt]` to
|
|
|
|
`$RPROMPT` respectively and call `git-info` in the `prompt_name_preexec` hook
|
|
|
|
`$RPROMPT` respectively and call `git-info` in the `prompt_name_preexec` hook
|
|
|
|
function.
|
|
|
|
function.
|
|
|
|
|
|
|
|
|
|
|
|