Closed micjamking closed 10 years ago
Thanks for the detailed report! HCl should create the aliases file automatically when you run it. I'll double check and get back to you. In the meantime, all I can suggest is to try running HCl and see if it creates the aliases file.
Thanks again. I'll get back you with more info soon.
On Jan 29, 2014, at 17:44, Mike King notifications@github.com wrote:
I switched from the old auto completion script:
eval
hcl completion
to the new one:complete -W
cat ~/.hcl/aliases
hcl and I get the following error on CLI:cat: /Users/username/.hcl/aliases: No such file or directory complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...] ...which makes sense, because when I look in the .hcl directory, there isn't an aliases directory/file. Currently, all of the aliases are being saved to a settings.yml file. Replacing settings.yml in the script doesn't fix the issue either.
— Reply to this email directly or view it on GitHub.
Follow-up question: Are you running HCl from the latest source? Thanks.
On January 29, 2014 at 18:00:50 , Zack Hobson (zack@zackhobson.com) wrote:
Thanks for the detailed report! HCl should create the aliases file automatically when you run it. I'll double check and get back to you. In the meantime, all I can suggest is to try running HCl and see if it creates the aliases file.
Thanks again. I'll get back you with more info soon.
On Jan 29, 2014, at 17:44, Mike King notifications@github.com wrote:
I switched from the old auto completion script:
eval hcl completion
to the new one:
complete -W cat ~/.hcl/aliases
hcl
and I get the following error on CLI:
cat: /Users/username/.hcl/aliases: No such file or directory complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
...which makes sense, because when I look in the .hcl directory, there isn't an aliases directory/file. Currently, all of the aliases are being saved to a settings.yml file. Replacing settings.yml in the script doesn't fix the issue either.
— Reply to this email directly or view it on GitHub.
Thanks for the heads up, it turns out that HCl wasn't creating the alias cache every time. Should be fixed now. Make sure you're using the latest version from master if you want to use this feature, it hasn't be released yet.
Thanks again!
No problem. Thanks!
I switched from the old auto completion script:
to the new one:
and I get the following error on CLI:
...which makes sense, because when I look in the
.hcl
directory, there isn't analiases
directory/file. Currently, all of the aliases are being saved to asettings.yml
file. Replacingsettings.yml
in the script doesn't fix the issue either.