command-not-found: add support for NixOS (#7701)

This commit is contained in:
SomeDer authored and Marc Cornellà committed 2019-03-25 22:19:46 +01:00
1 parent 1e7033d660
commit d79415b17d
2 files changed
+8

No files matched your search

@@ -31,3 +31,10 @@ if type brew &> /dev/null; then
eval "$(brew command-not-found-init)";
fi
fi
# NixOS command-not-found support
if [ -x /run/current-system/sw/bin/command-not-found ]; then
command_not_found_handler () {
/run/current-system/sw/bin/command-not-found $@
}
fi