mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
New plugin git-svn installing git project
git-svn-clone-externals
This commit is contained in:
1
plugins/git-svn/.gitignore
vendored
Normal file
1
plugins/git-svn/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
git-svn-clone-externals
|
||||||
10
plugins/git-svn/git-svn.plugin.zsh
Normal file
10
plugins/git-svn/git-svn.plugin.zsh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
if ! [ -d "$ZSH/plugins/git-svn/git-svn-clone-externals" ] ;then
|
||||||
|
git clone https://github.com/andrep/git-svn-clone-externals.git
|
||||||
|
fi
|
||||||
|
export PATH="$ZSH/plugins/git-svn/git-svn-clone-externals:$PATH"
|
||||||
|
|
||||||
|
function git_svn_update {
|
||||||
|
(cd "$ZSH/plugins/git-svn/git-svn-clone-externals" && \
|
||||||
|
git pull origin master)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user