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
Oh My Zsh
Commits
fb614a0e
Commit
fb614a0e
authored
Dec 02, 2013
by
Robby Russell
Browse files
Merge pull request #2229 from prubianes/master
Bazaar Integration Lib
parents
9357f2f4
248890b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/bzr.zsh
0 → 100644
View file @
fb614a0e
## 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
themes/frisk.zsh-theme
View file @
fb614a0e
...
@@ -10,13 +10,3 @@ ZSH_THEME_GIT_PROMPT_PREFIX=$ZSH_THEME_SCM_PROMPT_PREFIX$GIT_CB
...
@@ -10,13 +10,3 @@ ZSH_THEME_GIT_PROMPT_PREFIX=$ZSH_THEME_SCM_PROMPT_PREFIX$GIT_CB
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[green]%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
## Bazaar integration
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]%} *%{$reset_color%}"
echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX"
fi
}
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