-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Define subcommands list | ||
set -l commands list status connect disconnect quit | ||
|
||
# Disable filesystem completions | ||
complete -c tunblkctl --no-files | ||
|
||
# Complete commands | ||
complete -c tunblkctl --condition "not __fish_seen_subcommand_from $commands" \ | ||
-a "$commands" | ||
|
||
# Complete VPN names | ||
complete -c tunblkctl --condition "__fish_seen_subcommand_from connect disconnect" \ | ||
-a "(tunblkctl list)" | ||
|
||
# Complete strip option | ||
complete -c tunblkctl --condition "__fish_seen_subcommand_from status" \ | ||
-l strip -d 'Strip output formatting (raw mode)' | ||
|
||
# Complete no-strip option | ||
complete -c tunblkctl --condition "__fish_seen_subcommand_from status" \ | ||
-l no-strip -d 'Do not strip output formatting (human mode)' |