A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/khrt/svn-n-zsh-plugin below:

khrt/svn-n-zsh-plugin: Improved version of SVN plugin provided with the oh-my-zsh.

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).

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

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4