summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Tarek Butt2016-12-22 02:04:28 +0100
committerJan-Tarek Butt2016-12-22 02:04:28 +0100
commita1ae780d8a03dc06ccb4818b062ae022bfe04794 (patch)
treef13d8f9367d83ce7305846565f89075406bc4537
parent3c0cdc9793f53432cdb9da54710e432fd6d7bb6f (diff)
downloadaur-a1ae780d8a03dc06ccb4818b062ae022bfe04794.tar.gz
install: show message after install for vimrc config
-rw-r--r--install20
1 files changed, 17 insertions, 3 deletions
diff --git a/install b/install
index 9e4221a3cb60..aec3bdf69f92 100644
--- a/install
+++ b/install
@@ -1,14 +1,28 @@
-post_install() {
+update_vim_help() {
echo -n "Updating Vim help tags..."
/usr/bin/vim --noplugin -u NONE -U NONE \
--cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
echo "done."
}
+post_install() {
+ update_vim_help
+ echo "==> ------------------------------------------------------------------------------------------------------------------------------"
+ echo
+ echo "==> add: \"let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'\" to your vimrc"
+ echo
+ echo "==> ------------------------------------------------------------------------------------------------------------------------------"
+}
+
post_upgrade() {
- post_install $1
+ update_vim_help "$1"
}
post_remove() {
- post_install
+ update_vim_help
+ echo "==> ---------------------------------------------------------------------------------------------------------------------------------"
+ echo
+ echo "==> remove: \"let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'\" in your vimrc"
+ echo
+ echo "==> ---------------------------------------------------------------------------------------------------------------------------------"
}