mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Schroot plugin
This commit is contained in:
parent
26aae6b583
commit
a2160b0add
2 changed files with 18 additions and 2 deletions
|
|
@ -11,8 +11,8 @@
|
|||
# errors with themes, that implement these functions
|
||||
# Real implementations will be used when the respective plugins are loaded
|
||||
function chruby_prompt_info hg_prompt_info pyenv_prompt_info \
|
||||
rbenv_prompt_info svn_prompt_info vi_mode_prompt_info \
|
||||
virtualenv_prompt_info {
|
||||
rbenv_prompt_info schroot_prompt_info svn_prompt_info \
|
||||
vi_mode_prompt_info virtualenv_prompt_info {
|
||||
return 1
|
||||
}
|
||||
|
||||
|
|
|
|||
16
plugins/schroot/schroot.plugin.zsh
Normal file
16
plugins/schroot/schroot.plugin.zsh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
###################################################################
|
||||
# Show current schroot
|
||||
#
|
||||
# Author:
|
||||
# https://github.com/fshp
|
||||
#
|
||||
# You need modify theme
|
||||
# The theme can be obtained here:
|
||||
# https://github.com/fshp/schroot.zsh-theme
|
||||
###################################################################
|
||||
|
||||
function schroot_prompt_info() {
|
||||
if [ -n "$SCHROOT_CHROOT_NAME" ]; then
|
||||
echo "${ZSH_THEME_SCHROOT_PROMPT_PREFIX}${SCHROOT_CHROOT_NAME}${ZSH_THEME_SCHROOT_PROMPT_SUFFIX}"
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue