diff --git a/plugins/pkgx/pkgx.plugin.zsh b/plugins/pkgx/pkgx.plugin.zsh
new file mode 100644
index 000000000..b4c574d12
--- /dev/null
+++ b/plugins/pkgx/pkgx.plugin.zsh
@@ -0,0 +1,5 @@
+# If pkgx is not found, don't do the rest of the script
+if (( ! $+commands[pkgx] )); then
+  return
+fi
+source <(pkgx --shellcode)