daml/daml-assistant
Moritz Kiefer d1449e78c7
Add Zsh completions for the assistant (#3980)
* Add Zsh completions for the assistant

This is slightly more annoying for users since at least on Linux there
doesn’t seem to be a user-writable directory that is in `$fpath` by
default. I think on Zsh we could probably write them to
/usr/local/share/zsh/site-functions but I’d rather avoid platform
specific logic here. I would expect that Zsh users are usually
somewhat comfortable with modifying the config and this also matches
other installation instructions, e.g.,
https://github.com/zsh-users/zsh-completions#manual-installation.

On the plus side, the completions look significantly nicer in Zsh
since they include the description of commands.

CHANGELOG_BEGIN
- [DAML Assistant] Zsh completions for the DAML Assistant are now
  installed as part of ``daml install``. To activate them you need to
  add ``~/.daml/zsh`` to your ``$fpath``, e.g., by adding
  ``fpath=(~/.daml/zsh $fpath)`` to the beginning of your ``~/.zshrc``
  before you call ``compinit``.
CHANGELOG_END

* Fix tests

* Update daml-assistant/src/DA/Daml/Assistant/Install/Completion.hs

Co-Authored-By: associahedron <231829+associahedron@users.noreply.github.com>

Co-authored-by: associahedron <231829+associahedron@users.noreply.github.com>
2020-01-08 14:58:13 +01:00
..
daml-helper update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
daml-project-config/DA/Daml/Project update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
daml-sdk Add akka slf4j library as dependency of super fat daml-sdk.jar (#3965) 2020-01-07 17:19:42 +01:00
exe/DA/Daml Add Zsh completions for the assistant (#3980) 2020-01-08 14:58:13 +01:00
integration-tests update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
scala-daml-project-config Remove unused dependencies to da_scala_library (#3938) 2020-01-06 18:14:21 +01:00
src/DA/Daml/Assistant Add Zsh completions for the assistant (#3980) 2020-01-08 14:58:13 +01:00
test/DA/Daml/Assistant Add Zsh completions for the assistant (#3980) 2020-01-08 14:58:13 +01:00
BUILD.bazel update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
daml-project-config.cabal update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
get-daml.sh update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00