Committed after home build
diff --git a/users/minion/home.nix b/users/minion/home.nix
index 477b3a1..833f10f 100644
--- a/users/minion/home.nix
+++ b/users/minion/home.nix
@@ -72,20 +72,20 @@
command_not_found_handler ()
{
- echo "Command '$1' not found, searching for it in the Nix store..."
- , $@
- # local p='/nix/store/ycclzpk99snlrk8sg9n4j8pm1927gavw-command-not-found/bin/command-not-found';
- # if [ -x "$p" ] && [ -f '/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' ]; then
- # "$p" "$@";
- # if [ $? = 126 ]; then
- # "$@";
- # else
- # return 127;
- # fi;
- # else
- # echo "$1: command not found" 1>&2;
- # return 127;
- # fi
+ # echo "Command '$1' not found, searching for it in the Nix store..."
+ # , $@
+ local p='/nix/store/ycclzpk99snlrk8sg9n4j8pm1927gavw-command-not-found/bin/command-not-found';
+ if [ -x "$p" ] && [ -f '/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite' ]; then
+ "$p" "$@";
+ if [ $? = 126 ]; then
+ "$@";
+ else
+ return 127;
+ fi;
+ else
+ echo "$1: command not found" 1>&2;
+ return 127;
+ fi
}
'';
enableSyntaxHighlighting = true;