modules/shell-config: magic command-not-found using comma
This commit is contained in:
parent
ccdf8f8b79
commit
1dfafa3fb0
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,11 @@ let
|
||||||
] ++ [
|
] ++ [
|
||||||
"source ${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
"source ${pkgs.fzf}/share/fzf/key-bindings.zsh"
|
||||||
"ZSH_HIGHLIGHT_DIRS_BLACKLIST=(/* /ipfs /ipns)"
|
"ZSH_HIGHLIGHT_DIRS_BLACKLIST=(/* /ipfs /ipns)"
|
||||||
|
''
|
||||||
|
command_not_found_handler() {
|
||||||
|
${pkgs.comma}/bin/comma "$@"
|
||||||
|
}
|
||||||
|
''
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
|
@ -28,6 +33,7 @@ in {
|
||||||
manix-view = ''manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --ansi --preview="manix '{}' | sed 's/type: /> type: /g' | bat -l Markdown --color=always --plain"'';
|
manix-view = ''manix "" | grep '^# ' | sed 's/^# \(.*\) (.*/\1/;s/ (.*//;s/^# //' | fzf --ansi --preview="manix '{}' | sed 's/type: /> type: /g' | bat -l Markdown --color=always --plain"'';
|
||||||
};
|
};
|
||||||
programs = {
|
programs = {
|
||||||
|
command-not-found.enable = false;
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
histFile = "$HOME/.cache/zsh_history";
|
histFile = "$HOME/.cache/zsh_history";
|
||||||
|
|
Loading…
Reference in a new issue