From 39103e16e3273980c076982f286abeb3ce4b50ae Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Fri, 26 Aug 2022 22:29:58 -0700 Subject: [PATCH] added vim detection function --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index c89389b..2462443 100644 --- a/install.sh +++ b/install.sh @@ -49,6 +49,15 @@ usage(){ boxbottom } +detectvim(){ + if [ -d /usr/share/vim] ; then + viminstall=$(ls -lah /usr/share/vim/ | grep vim | grep -v rc | awk '{print $NF}') + else + viminstall=null + boxborder "vim is not currently installed, unable to set up colorscheme and formatting" + fi +} + install(){ mkdir -p ${globalinstalldir} cp ${rundir}/functions ${globalinstalldir}/functions