aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_config_interactive.fish
diff options
context:
space:
mode:
authorGravatar Max Gonzih <gonzih@gmail.com>2014-12-07 13:33:40 +0100
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2014-12-22 11:16:36 +0800
commit46cd89c2db40d86bb87a064c7a27fbb8fb71393f (patch)
tree1d01932709b56455ec9b8791e76e4b566a8f87f5 /share/functions/__fish_config_interactive.fish
parent8124b5073f9caccec4d68e12e7f6293a84f6ba07 (diff)
Support nixos command-not-found handler
Diffstat (limited to 'share/functions/__fish_config_interactive.fish')
-rw-r--r--share/functions/__fish_config_interactive.fish5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/functions/__fish_config_interactive.fish b/share/functions/__fish_config_interactive.fish
index 2ace0248..564cd791 100644
--- a/share/functions/__fish_config_interactive.fish
+++ b/share/functions/__fish_config_interactive.fish
@@ -224,6 +224,11 @@ function __fish_config_interactive -d "Initializations that should be performed
function __fish_command_not_found_handler --on-event fish_command_not_found
/usr/lib/command-not-found -- $argv
end
+ # Check for NixOS handler
+ else if test -f /run/current-system/sw/bin/command-not-found
+ function __fish_command_not_found_handler --on-event fish_command_not_found
+ /run/current-system/sw/bin/command-not-found $argv
+ end
# Ubuntu Feisty places this command in the regular path instead
else if type -q -p command-not-found
function __fish_command_not_found_handler --on-event fish_command_not_found