Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
499819ce
Commit
499819ce
authored
Jun 29, 2011
by
Max Gonzih
Browse files
vundle plugin refactored
first it checks existens of vundle plugin, if plugin dont exist run git clone
parent
7ef7ffc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/vundle/vundle.plugin.zsh
View file @
499819ce
alias
vundle-init
=
'git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle'
alias
vundle
=
'vim -c "execute \"BundleInstall\" | q"'
alias
vundle-update
=
'vim -c "execute \"BundleInstall!\" | q"'
function
vundle-init
()
{
if
[
!
-d
~/.vim/bundle/vundle/
]
then
mkdir
-p
~/.vim/bundle/vundle/
fi
if
[
!
-d
~/.vim/bundle/vundle/.git/
]
then
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
fi
}
function
vundle
()
{
vundle-init
vim
-c
"execute
\"
BundleInstall
\"
| q"
}
function
vundle-update
()
{
vundle-init
vim
-c
"execute
\"
BundleInstall!
\"
| q"
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment