mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
add new vundle commands and clean up
This commit is contained in:
parent
1b7a3ea99a
commit
9ac0ba658e
1 changed files with 8 additions and 10 deletions
|
|
@ -1,27 +1,25 @@
|
|||
function vundle-init () {
|
||||
if [ ! -d ~/.vim/bundle/vundle/ ]
|
||||
if [ ! -d ~/.vim/bundle/Vundle.vim/ ]
|
||||
then
|
||||
mkdir -p ~/.vim/bundle/vundle/
|
||||
fi
|
||||
|
||||
if [ ! -d ~/.vim/bundle/vundle/.git ] && [ ! -f ~/.vim/bundle/vundle/.git ]
|
||||
then
|
||||
git clone http://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
|
||||
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
||||
echo "\n\tRead about vim configuration for vundle at https://github.com/gmarik/vundle\n"
|
||||
fi
|
||||
}
|
||||
|
||||
function vundle () {
|
||||
vundle-init
|
||||
vim -c "execute \"BundleInstall\" | q | q"
|
||||
vim +PluginInstall +qall
|
||||
echo "\n\tVundle plugins installed!\n"
|
||||
}
|
||||
|
||||
function vundle-update () {
|
||||
vundle-init
|
||||
vim -c "execute \"BundleInstall!\" | q | q"
|
||||
vim +PluginUpdate +qall
|
||||
echo "\n\tVundle plugins updated!\n"
|
||||
}
|
||||
|
||||
function vundle-clean () {
|
||||
vundle-init
|
||||
vim -c "execute \"BundleClean!\" | q | q"
|
||||
vim +PluginClean +qall
|
||||
echo "\n\tUnused vundle plugins has been removed!\n"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue