Parcourir la source

[zsh] Add warning when using zplug without gawk installed

Emmanuel Bouthenot il y a 3 ans
Parent
commit
99c5523931
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  1. 10 0
      .zsh/config/00_zplug.zsh

+ 10 - 0
.zsh/config/00_zplug.zsh

@@ -0,0 +1,10 @@
+#
+# zplug settings
+#
+
+if [ -n "${ZPLUG_HOME}" ] ; then
+    if ! command -v gawk >/dev/null 2>&1 ; then
+        printf "[zplug] warning: gawk is not installed\n"
+    fi
+fi
+