Avoid repeated keys

This commit is contained in:
SebastianStork 2024-08-07 01:22:15 +02:00
parent 53d90bee5a
commit 94e52b022b
12 changed files with 143 additions and 114 deletions

View file

@ -8,48 +8,50 @@
options.myConfig.shell.zsh.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.shell.zsh.enable {
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
programs = {
zsh = {
enable = true;
dotDir = ".config/zsh";
autocd = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history = {
ignoreAllDups = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
autocd = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
history = {
ignoreAllDups = true;
path = "${config.xdg.dataHome}/zsh/zsh_history";
};
plugins = [
{
name = "fzf-tab";
src = pkgs.zsh-fzf-tab;
file = "share/fzf-tab/fzf-tab.plugin.zsh";
}
];
initExtra = ''
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-Z}'
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls $realpath'
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
'';
};
plugins = [
{
name = "fzf-tab";
src = pkgs.zsh-fzf-tab;
file = "share/fzf-tab/fzf-tab.plugin.zsh";
}
];
fzf.enable = true;
initExtra = ''
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-Z}'
zstyle ':completion:*' list-colors ''${(s.:.)LS_COLORS}
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls $realpath'
zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
'';
};
programs.fzf.enable = true;
programs.zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
config.global.hide_env_diff = true;
direnv = {
enable = true;
nix-direnv.enable = true;
config.global.hide_env_diff = true;
};
};
};
}