Skip to content

Commit ed01fca

Browse files
koalamantpope
authored andcommitted
Update install commands to use && instead of ;
This way, if mkdir or cd fails, it'll stop rather than continuing to download or clone in the wrong directory.
1 parent 1b644bf commit ed01fca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ private directories.
88

99
Install to `~/.vim/autoload/pathogen.vim`. Or copy and paste:
1010

11-
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
11+
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
1212
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
1313

1414
If you're using Windows, change all occurrences of `~/.vim` to `~\vimfiles`.
@@ -30,7 +30,7 @@ Now any plugins you wish to install can be extracted to a subdirectory
3030
under `~/.vim/bundle`, and they will be added to the `'runtimepath'`.
3131
Observe:
3232

33-
cd ~/.vim/bundle
33+
cd ~/.vim/bundle && \
3434
git clone git://github.com/tpope/vim-sensible.git
3535

3636
Now [sensible.vim](https://github.com/tpope/vim-sensible) is installed.

0 commit comments

Comments
 (0)