-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from nonnymoose/master
Add support for completions in the fish shell
- Loading branch information
Showing
2 changed files
with
20 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
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,12 @@ | ||
function __fish_command_not_found_handler --on-event fish_command_not_found | ||
if test -x "/usr/bin/cnf-lookup" | ||
cnf-lookup -c -- $argv[1] | ||
if test $status -ne 0 | ||
__fish_default_command_not_found_handler $argv[1] | ||
end | ||
else | ||
__fish_default_command_not_found_handler $argv[1] | ||
end | ||
# no need to return an error code for fish | ||
end | ||
|