fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Boehmcompletions: More shortening5dc07c9e7

master
1.8 KiB32 linesraw
1set -l commands allow permit grant block deny revoke edit exec fetchurl help hook prune reload status stdlib version
2
3set -l with_file allow permit grant block deny revoke edit
4
5complete -c direnv -f
6
7complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
8    -a "allow permit grant" -d "Grant direnv permission to load the given .envrc or .env file"
9complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
10    -a "block deny revoke" -d "Revoke the authorization of a given .envrc or .env file"
11complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
12    -a edit -d "Open given file or current .envrc/.env in \$EDITOR and allow it to be loaded afterwards"
13complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
14    -a exec -d "Execute a command after loading the first .envrc or .env found in DIR"
15complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
16    -a fetchurl -d "Fetch a given URL into direnv's CAS"
17complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
18    -a help -d "show help"
19complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
20    -a hook -d "Used to setup the shell hook"
21complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
22    -a prune -d "Remove old allowed files"
23complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
24    -a reload -d "Trigger an env reload"
25complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
26    -a status -d "Print some debug status information"
27complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
28    -a stdlib -d "Display the stdlib available in the .envrc execution context"
29complete -c direnv -n "not __fish_seen_subcommand_from $commands" \
30    -a version -d "Print the version or check that direnv is at least given version"
31
32complete -c direnv -n "__fish_seen_subcommand_from $with_file" -F