Browse Source

[zsh] Add warning when using zplug without gawk installed

Emmanuel Bouthenot 2 years ago
parent
commit
99c5523931
1 changed files with 10 additions and 0 deletions
  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
+