mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
agnoster: add guard to bzr prompt
Depending on the exit code of 'bzr status' is not enough, as some command_not_found_handler could be used which would then override that code. Use the associative list of commands from zsh/param instead. Signed-off-by: Olivier Tilmans <olivier.tilmans@uclouvain.be>
This commit is contained in:
parent
d1ce70f685
commit
1bd0a90e9e
1 changed files with 1 additions and 0 deletions
|
|
@ -128,6 +128,7 @@ prompt_git() {
|
|||
}
|
||||
|
||||
prompt_bzr() {
|
||||
(( $+commands[bzr] )) || return
|
||||
if (bzr status >/dev/null 2>&1); then
|
||||
status_mod=`bzr status | head -n1 | grep "modified" | wc -m`
|
||||
status_all=`bzr status | head -n1 | wc -m`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue