Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
efc37c1f
Commit
efc37c1f
authored
Nov 06, 2013
by
Pablo Rubianes
Browse files
Modification to the frisk theme to work with the BZR lib
parent
e30a1243
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/bzr.zsh
0 → 100644
View file @
efc37c1f
## Bazaar integration
## Just works with the GIT integration just add $(bzr_prompt_info) to the PROMPT
function
bzr_prompt_info
()
{
BZR_CB
=
`
bzr nick 2> /dev/null |
grep
-v
"ERROR"
|
cut
-d
":"
-f2
|
awk
-F
/
'{print "bzr::"$1}'
`
if
[
-n
"
$BZR_CB
"
]
;
then
BZR_DIRTY
=
""
[[
-n
`
bzr status
`
]]
&&
BZR_DIRTY
=
" %{
$fg
[red]%} * %{
$fg
[green]%}"
echo
"
$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX
"
fi
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment