Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.
/ svn-n-zsh-plugin Public archive

Improved version of SVN plugin provided with the oh-my-zsh.

License

Notifications You must be signed in to change notification settings

khrt/svn-n-zsh-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

NOTE

The plugin was fully rewriten and based on a default oh-my-zsh plugin and was included to the default oh-my-zsh bundle (see #1490).

SVN-n

Improved version of SVN plugin provided with the oh-my-zsh.

Install

  • oh-my-zsh - git clone https://github.com/khrt/svn-n-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/svn-n and add svn-n to $plugins on ~/.zshrc

Example

For agnoster zsh theme:

prompt_svn() {

  local PL_BRANCH_CHAR
  () {
    local LC_ALL="" LC_CTYPE="en_US.UTF-8"
    PL_BRANCH_CHAR=$'\ue0a0'         #
  }
  if svn_is_inside; then
    ZSH_THEME_SVN_PROMPT_DIRTY='±'
    local ref dirty
    if svn_parse_dirty; then
      dirty=$ZSH_THEME_SVN_PROMPT_DIRTY
      prompt_segment yellow black
    else
      prompt_segment green black
    fi
    echo -n "$PL_BRANCH_CHAR $(svn_branch_name) $(svn_rev)$dirty"
  fi

}

...

build_prompt() {
  RETVAL=$?
  prompt_status
  prompt_context
  prompt_dir
  prompt_git
  prompt_svn
  prompt_end
}

==== Based on oh-my-zsh/plugins/svn.plugin.zsh.

About

Improved version of SVN plugin provided with the oh-my-zsh.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages