diff -urN a/scripts/porg_bash_completion b/scripts/porg_bash_completion
--- a/scripts/porg_bash_completion	2015-04-09 06:17:38.000000000 +0100
+++ b/scripts/porg_bash_completion	2023-11-14 18:18:11.000000000 +0100
@@ -40,8 +40,7 @@
 #-------------------------------------------------------------------------------
 
 
-have porg &&
-_porg()
+_comp_cmd_porg()
 {
 	local prev cur pkgs longopts longopts_eq shortopts sorts vars vars_complete var
 
@@ -258,5 +257,5 @@
 
 	return 0
 }
-[ "$have" ] && complete -F _porg porg
+complete -F _comp_cmd_porg porg
 
