mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
Compare commits
No commits in common. "00b9b623858874c8b34c6f8dd72370e6ffa95dfc" and "f4423ebd09fbc7670815c3c20cc86c81b7319e5f" have entirely different histories.
00b9b62385
...
f4423ebd09
18
lib/bzr.zsh
18
lib/bzr.zsh
@ -1,14 +1,10 @@
|
|||||||
## Bazaar integration
|
## Bazaar integration
|
||||||
## Just works with the GIT integration. Add $(bzr_prompt_info) to the PROMPT
|
## Just works with the GIT integration just add $(bzr_prompt_info) to the PROMPT
|
||||||
function bzr_prompt_info() {
|
function bzr_prompt_info() {
|
||||||
local bzr_branch
|
BZR_CB=`bzr nick 2> /dev/null | grep -v "ERROR" | cut -d ":" -f2 | awk -F / '{print "bzr::"$1}'`
|
||||||
bzr_branch=$(bzr nick 2>/dev/null) || return
|
if [ -n "$BZR_CB" ]; then
|
||||||
|
BZR_DIRTY=""
|
||||||
if [[ -n "$bzr_branch" ]]; then
|
[[ -n `bzr status` ]] && BZR_DIRTY=" %{$fg[red]%} * %{$fg[green]%}"
|
||||||
local bzr_dirty=""
|
echo "$ZSH_THEME_SCM_PROMPT_PREFIX$BZR_CB$BZR_DIRTY$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
||||||
if [[ -n $(bzr status 2>/dev/null) ]]; then
|
fi
|
||||||
bzr_dirty=" %{$fg[red]%}*%{$reset_color%}"
|
|
||||||
fi
|
|
||||||
printf "%s%s%s%s" "$ZSH_THEME_SCM_PROMPT_PREFIX" "bzr::${bzr_branch##*:}" "$bzr_dirty" "$ZSH_THEME_GIT_PROMPT_SUFFIX"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
@ -15,24 +15,23 @@ plugins=(... opentofu)
|
|||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
| Alias | Command |
|
| Alias | Command |
|
||||||
|--------|------------------------------|
|
|--------|-----------------------|
|
||||||
| `tt` | `tofu` |
|
| `tt` | `tofu` |
|
||||||
| `tta` | `tofu apply` |
|
| `tta` | `tofu apply` |
|
||||||
| `ttaa` | `tofu apply -auto-approve` |
|
| `ttc` | `tofu console` |
|
||||||
| `ttc` | `tofu console` |
|
| `ttd` | `tofu destroy` |
|
||||||
| `ttd` | `tofu destroy` |
|
| `ttf` | `tofu fmt` |
|
||||||
| `ttf` | `tofu fmt` |
|
| `ttfr` | `tofu fmt -recursive` |
|
||||||
| `ttfr` | `tofu fmt -recursive` |
|
| `tti` | `tofu init` |
|
||||||
| `tti` | `tofu init` |
|
| `tto` | `tofu output` |
|
||||||
| `tto` | `tofu output` |
|
| `ttp` | `tofu plan` |
|
||||||
| `ttp` | `tofu plan` |
|
| `ttv` | `tofu validate` |
|
||||||
| `ttv` | `tofu validate` |
|
| `tts` | `tofu state` |
|
||||||
| `tts` | `tofu state` |
|
| `ttsh` | `tofu show` |
|
||||||
| `ttsh` | `tofu show` |
|
| `ttr` | `tofu refresh` |
|
||||||
| `ttr` | `tofu refresh` |
|
| `ttt` | `tofu test` |
|
||||||
| `ttt` | `tofu test` |
|
| `ttws` | `tofu workspace` |
|
||||||
| `ttws` | `tofu workspace` |
|
|
||||||
|
|
||||||
|
|
||||||
## Prompt functions
|
## Prompt functions
|
||||||
|
|||||||
@ -29,7 +29,6 @@ function tofu_version_prompt_info() {
|
|||||||
|
|
||||||
alias tt='tofu'
|
alias tt='tofu'
|
||||||
alias tta='tofu apply'
|
alias tta='tofu apply'
|
||||||
alias ttaa='tofu apply -auto-approve'
|
|
||||||
alias ttc='tofu console'
|
alias ttc='tofu console'
|
||||||
alias ttd='tofu destroy'
|
alias ttd='tofu destroy'
|
||||||
alias ttf='tofu fmt'
|
alias ttf='tofu fmt'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user