From 78d87f5b1309f6231f33a7fe7bd74d17fa83e3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Cornell=C3=A0?= Date: Fri, 13 Aug 2021 12:52:48 +0200 Subject: [PATCH] Soft-remove Plugin:* pages --- Plugin:git.md | 2 +- Plugin:svn.md | 62 +-------------------------------------------------- 2 files changed, 2 insertions(+), 62 deletions(-) diff --git a/Plugin:git.md b/Plugin:git.md index 79468bb..8c5346f 100644 --- a/Plugin:git.md +++ b/Plugin:git.md @@ -1 +1 @@ -https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git/ \ No newline at end of file +[See git plugin REAMDE](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git/) diff --git a/Plugin:svn.md b/Plugin:svn.md index 0f08412..e9602f9 100644 --- a/Plugin:svn.md +++ b/Plugin:svn.md @@ -1,61 +1 @@ -# `svn` plugin - -This plugin adds some utility functions to display additional information regarding your current svn repository. See http://subversion.apache.org/ for the full svn documentation. - -## Functions - -| Command | Description | -|:-----------------------|:----------------------------------------| -|svn_prompt_info | prompt for some themes | -|in_svn | within svn directory | -|svn_get_repo_name | | -|svn_get_branch_name | branch name (bug: returns the first path element if branches not used) | -|svn_get_rev_nr | revision number | -|svn_dirty | changes in this subversion repo | - -## Caveats - -The plugin expects the first directory to be the current branch / tag / trunk. - -## Usage - -To use it, add `svn` to your plugins array: -```sh -plugins=(... svn) -``` - -### Agnoster theme git-like prompt - -Enable the svn plugin and add the following lines to your ```~/.zshrc``` - -```shell -prompt_svn() { - local rev branch - if in_svn; then - rev=$(svn_get_rev_nr) - branch=$(svn_get_branch_name) - if [ `svn_dirty_choose_pwd 1 0` -eq 1 ]; then - prompt_segment yellow black - echo -n "$rev@$branch" - echo -n "±" - else - prompt_segment green black - echo -n "$rev@$branch" - fi - fi -} -``` - -override the agnoster build_prompt() function: - -```shell -build_prompt() { - RETVAL=$? - prompt_status - prompt_context - prompt_dir - prompt_git - prompt_svn - prompt_end -} -``` +[See svn plugin REAMDE](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/svn/)