Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be42e54

Browse files
authored
Update install.sh
1 parent 481ed71 commit be42e54

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

install.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,17 @@ fi
4545

4646
touch ~/.ctrlp
4747

48-
vim +PlugInstall +qall
48+
vim -u $INSTALL_DIR/maintenance.vim +PlugInstall +qall
4949

50-
command -v ag >/dev/null 2>&1 || printf "It is recommended to install ag, the_silver_searcher.\ngithub: https://github.com/ggreer/the_silver_searcher\ndebian: apt-get install silversearcher-ag\nfedora: dnf install the_silver_searcher\n";
51-
command -v ctags >/dev/null 2>&1 || printf "It is recommended to install ctags.\ndebian: sudo apt-get install exuberant-ctags\nfedora: dnf install ctags\n";
50+
if ! [ -x "$(command -v ag)" ]; then
51+
printf "It is recommended to install ag, the_silver_searcher.\n"
52+
printf "github: https://github.com/ggreer/the_silver_searcher\n"
53+
printf "debian: apt-get install silversearcher-ag\n"
54+
printf "fedora: dnf install the_silver_searcher\n\n"
55+
fi
5256

57+
if ! [ -x "$(command -v ctags)" ]; then
58+
printf "It is recommended to install ctags.\n"
59+
printf "debian: sudo apt-get install exuberant-ctags\n"
60+
printf "fedora: dnf install ctags\n\n"
61+
fi

0 commit comments

Comments
 (0)