added vim detection function

This commit is contained in:
pyr0ball 2022-08-26 22:29:58 -07:00
parent 0d8bd0e1e1
commit 39103e16e3

View file

@ -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