1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-22 12:21:58 +00:00
Commit graph

21 commits

Author SHA1 Message Date
Marc Cornellà
e6df0e036e Clean up and refactor code in svn plugin 2016-09-29 14:03:09 +02:00
Christian Ferbar
364019a3c9 Add localization workaround to svn plugin 2016-09-29 13:56:40 +02:00
Andrew Janke
36fea45bfc svn plugin: urldecode repo info
The repo location reported by `svn` is a URL. If you don't decode it before using it a prompt, the `%` sequences will be misinterpreted by prompt expansion and give screwy results.
Fixes #2233
2015-09-11 03:11:01 -04:00
DanielFGray
00ec11d3c0 ignore any grep aliases that might be defined 2014-11-16 02:47:35 -06:00
Marc Cornellà
4310a15de5 Change all pwd calls for $PWD variable
This avoids spawning additional processes as $PWD **always** contains
the current working directory.
2014-11-06 18:33:56 +01:00
Andrew vonderLuft
8f7971349b add option to show dirty status of current dir 2014-03-14 13:17:03 -07:00
Artie Kh
6ce08acb27 added support for subversion 1.7 for svn plugin 2012-12-30 21:18:12 +02:00
Robby Russell
2aa485ac04 Merge pull request #1435 from Drarok/fix-svn
Fix backwards svn "dirty" state detection
2012-12-01 11:41:17 -08:00
Robby Russell
08efdcdd16 Merge pull request #1400 from tresni/patch-2
Updated svn.plugin.zsh to behave more like lib/git.zsh
2012-12-01 11:39:21 -08:00
Drarok Ithaqua
120db35b2d Fix the backwards svn status, and add comments explaining which way grep does things. 2012-11-27 12:08:18 +00:00
Drarok Ithaqua
79e620c392 Whitespace cleanup. 2012-11-27 12:03:51 +00:00
Caleb Epstein
91c57e6d42 Untabify 2012-11-13 12:48:37 -05:00
Caleb Epstein
f2ac08832a Handle metachars in svn status output using grep -q 2012-11-12 11:53:09 -05:00
Brian Hartvigsen
1b768a3b40 Update plugins/svn/svn.plugin.zsh
Behave more like lib/git.zsh.
Set `SVN_SHOW_BRANCH="true"` to display branch/tag or trunk instead of just repo name.
Falls back to repo name if branch information is not available.

Idea and awk call from revans/bash-it/themes/base.theme.bash
2012-11-08 13:48:43 -07:00
Mat Gadd
e2f7623534 Don't drop everything after a trailing slash, as this breaks standard svn branches:
^/branches/featurename
^/releases/Release-vx.y
^/trunk
2012-05-03 13:03:23 +01:00
James Moore
b2703a3c8a This is the correct way to check the return value 2011-09-23 10:51:20 -07:00
James Moore
c2d0cdd533 This needs to explicitly check the return value 2011-09-23 10:18:09 -07:00
Andrew Smith
7b25a3fca9 The original SVN pluging would mark a folder as dirty if there was an
svn:external set and the output of 'svn status' returned the check for
the external. E.g.

$ svn st
X       Application

Performing status on external item at 'Application'

Shouldn't be marked as being dirty. By grepping for only the valid
output for what should be class as dirty, it won't return false
positives.
2011-07-25 09:50:54 +10:00
Andrew Smith
3cb33fc254 Replace a duplicated test to see if we're in an SVN folder with a call to the 'in_svn' function. 2011-07-25 09:46:17 +10:00
Matt Doran
9b63a03bcf Fix typos in the svn plugin that would cause calls to 'svn' when not in an svn working copy. 2011-06-04 00:32:05 +10:00
Robin Ramael
664b97a3c8 Added svn info in prompt with plugin.
If the svn plugin is used, svn info (repo name and wether the repo is dirty) is displayed in the prompt like with git. Just lke with git, the colors can be manipulated with variables (see awesomepanda theme for example).
2011-01-10 18:18:31 +01:00