init: Use setlocal instead of set
[vimconf.git] / install.sh
index b6ce4d78021614f5f337c1df98464b347fe83617..4a5ee5aeeee503b92a308651ad673d55037c2ee2 100755 (executable)
@@ -25,13 +25,23 @@ check_py3()
 check_prog()
 {
     if which "$1" > /dev/null; then
-        echo "$1 found"
+        echo "$1 found."
     else
         echo "$1 not found. Aborting."
         exit
     fi
 }
 
+check_font()
+{
+    if fc-list | grep -q "$1"; then
+        echo "Font $1 found."
+    else
+        echo "Font $1 not found. Either install it or clear g:enable_plugin_devicons."
+        exit
+    fi
+}
+
 check_requirements()
 {
     check_prog aspell
@@ -39,6 +49,7 @@ check_requirements()
     check_prog git
     check_vim +python3
     check_py3 neovim
+    check_font "Hack NF"
 }
 
 backup() {