refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vim-sensible / install.sh
1 #!/bin/bash
2
3 function __init_vim_sensible() {
4     set -e
5     set -u
6
7     mkdir -p "$HOME/.vim/pack/plugins/start"
8     rm -rf "$HOME/.vim/pack/plugins/start/sensible" "$HOME/.vim/pack/plugins/start/vim-sensible"
9
10     # Note: we've had resolution issues in the past, and it doesn't seem likely
11     #       that tpope will switch from using GitHub as the primary host, so we
12     #       skip the redirect and use GitHub directly.
13     #       Open to changing this back in the future.
14     #my_sensible_repo="https://tpope.io/vim/sensible.git"
15     my_sensible_repo="https://github.com/tpope/vim-sensible.git"
16     git clone --depth=1 "${my_sensible_repo}" "$HOME/.vim/pack/plugins/start/vim-sensible"
17 }
18
19 __init_vim_sensible