summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/commands.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hcl/commands.rb b/lib/hcl/commands.rb
index a725ad4..024d595 100644
--- a/lib/hcl/commands.rb
+++ b/lib/hcl/commands.rb
@@ -67,8 +67,8 @@ module HCl
end
end
- def completion
- %[complete -W "#{aliases.join ' '}" hcl]
+ def completion command=$PROGRAM_NAME
+ %[complete -W "#{aliases.join ' '}" #{command}]
end
def aliases