diff options
| author | Shohei YOSHIDA <syohex@gmail.com> | 2026-02-17 14:17:14 +0900 |
|---|---|---|
| committer | Shohei YOSHIDA <syohex@gmail.com> | 2026-02-17 14:17:14 +0900 |
| commit | 532813bd3b28bf55d5095e3243b32ec8b7481512 (patch) | |
| tree | 24b872760b8f31abf97e19c97494f9a28dabff65 | |
| parent | Remove deprecated flag completions (diff) | |
| download | zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar.gz zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar.bz2 zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar.lz zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar.xz zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.tar.zst zsh-completions-532813bd3b28bf55d5095e3243b32ec8b7481512.zip | |
Add export completion and disallow alias
| -rw-r--r-- | src/_direnv | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/_direnv b/src/_direnv index 58be192..be97edd 100644 --- a/src/_direnv +++ b/src/_direnv @@ -43,9 +43,11 @@ _direnv_commands() { 'grant:Grants direnv permission to load the given .envrc or .env file' 'block:Revokes the authorization of a given .envrc or .env file' 'deny:Revokes the authorization of a given .envrc or .env file' + 'disallow:Revokes the authorization of a given .envrc or .env file' 'revoke:Revokes the authorization of a given .envrc or .env file' 'edit:Opens PATH_TO_RC or the current .envrc or .env into an $EDITOR and allow the file to be loaded afterwards' 'exec:Executes a command after loading the first .envrc or .env found in DIR' + 'export:Loads an .envrc or .env and prints the diff in terms of exports' "fetchurl:Fetches a given URL into direnv's CAS" 'help:shows this help' 'hook:Used to setup the shell hook' @@ -82,6 +84,12 @@ _direnv() { '2:command:_command_names' \ && ret=0 ;; + (export) + local -a supported_shells=(bash elvish gha gzenv murex tcsh vim zsh fish json pwsh systemd) + _arguments \ + '1:shell:($supported_shells)' \ + && ret=0 + ;; (hook) _arguments \ '1:shell:(bash zsh fish tcsh elvish)' \ |
