summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2013-12-21 18:41:03 -0800
committerZack Hobson2013-12-21 18:41:03 -0800
commitfd426b4a0476f517e7b956de46f3d25e4e86f7b6 (patch)
treeeb2403a184b4527acbb6d3d9719e85e00128f706 /lib
parentfd2bb13174bb2605fac838c666597f6f223e81dc (diff)
downloadhcl-fd426b4a0476f517e7b956de46f3d25e4e86f7b6.tar.bz2
README: support multiple profiles
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