forked from digital-asset/daml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Zsh completions for the assistant (digital-asset#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>
- Loading branch information
1 parent
7bce235
commit d1449e7
Showing
7 changed files
with
77 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters