From 47d502d5780d0cf26e8bf5a1312b6f14b133b13d Mon Sep 17 00:00:00 2001 From: tilpner Date: Tue, 17 Sep 2019 15:25:59 +0200 Subject: command-not-found: init --- conf.d/99-command-not-found.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 conf.d/99-command-not-found.zsh (limited to 'conf.d') 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 +} -- cgit v1.2.3