summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChet Henry2015-12-09 09:19:46 -0700
committerChet Henry2015-12-09 09:19:46 -0700
commit60b6dc45b667873ca050588241f3f6b4beff5ca1 (patch)
treedcddd6913b56e73dccbee3363c7eb4803df7f678
parent49edbaddac7f78ffba96bf7d79bd1a15006c05fc (diff)
downloadhcl-60b6dc45b667873ca050588241f3f6b4beff5ca1.tar.bz2
Fix missing tab completion on alias
-rw-r--r--README.markdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index 52fb0ad..32fb6ed 100644
--- a/README.markdown
+++ b/README.markdown
@@ -140,9 +140,10 @@ once, specify an alternate configuration directory in the environment as
once.
Here is a shell alias `myhcl` with a separate configuration from the
-main `hcl` command, tab completion will work with the alias automatically:
+main `hcl` command, and another command to configure alias completion:
alias myhcl="env HCL_DIR=~/.myhcl hcl"
+ complete -F _hcl myhcl
Adding something like the above to your bashrc will enable a new command,
`myhcl`. When using `myhcl` you can use different credentials and aliases,