command-not-found: add options
add option to disable command-not-found as well as option to define dbPath. Disabling this may remove the perl dependency for bash/zsh prompts
This commit is contained in:
@@ -8,7 +8,7 @@ use Config;
|
||||
|
||||
my $program = $ARGV[0];
|
||||
|
||||
my $dbPath = "/nix/var/nix/profiles/per-user/root/channels/nixos/programs.sqlite";
|
||||
my $dbPath = "@dbPath@";
|
||||
|
||||
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbPath", "", "")
|
||||
or die "cannot open database `$dbPath'";
|
||||
|
||||
Reference in New Issue
Block a user