summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf.d/99-command-not-found.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/conf.d/99-command-not-found.zsh b/conf.d/99-command-not-found.zsh
new file mode 100644
index 0000000..c4722fb
--- /dev/null
+++ b/conf.d/99-command-not-found.zsh
@@ -0,0 +1,8 @@
+command_not_found_handler() {
+ if type nix-locate > /dev/null; then
+ echo "Command not found, but found in the following packages:"
+ nix-locate -w1 -- "$1"
+ else
+ echo "Command not found, and nix-locate not available"
+ fi
+}