65 lines
1.7 KiB
Nix
65 lines
1.7 KiB
Nix
|
{ config, pkgs, ... }:
|
|||
|
|
|||
|
{
|
|||
|
programs.starship = {
|
|||
|
enable = true;
|
|||
|
enableZshIntegration = true;
|
|||
|
settings = {
|
|||
|
right_format = "$directory";
|
|||
|
add_newline = false;
|
|||
|
character = {
|
|||
|
success_symbol = "[❯](white)";
|
|||
|
error_symbol = "[✖](red)";
|
|||
|
vicmd_symbol = "[❮](white)";
|
|||
|
};
|
|||
|
directory = {
|
|||
|
disabled = false;
|
|||
|
style = "cyan";
|
|||
|
truncation_symbol = "…/";
|
|||
|
read_only = "";
|
|||
|
};
|
|||
|
aws = { disabled = true; };
|
|||
|
line_break = { disabled = true; };
|
|||
|
};
|
|||
|
};
|
|||
|
programs.exa = {
|
|||
|
enable = true;
|
|||
|
# enableAliases = true;
|
|||
|
};
|
|||
|
programs.zsh = {
|
|||
|
enableAutosuggestions = true;
|
|||
|
enableCompletion = true;
|
|||
|
initExtraBeforeCompInit = ''
|
|||
|
zstyle ':completion:*' matcher-list ''' \
|
|||
|
'm:{a-z\-}={A-Z\_}' \
|
|||
|
'r:[^[:alpha:]]||[[:alpha:]]=** r:|=* m:{a-z\-}={A-Z\_}' \
|
|||
|
'r:[[:ascii:]]||[[:ascii:]]=** r:|=* m:{a-z\-}={A-Z\_}'
|
|||
|
zstyle ':completion:*:functions' ignored-patterns '_*'
|
|||
|
zstyle ':completion:*' format $'\n%F{green}%d%f'
|
|||
|
zstyle ':completion:*' group-name '''
|
|||
|
setopt COMPLETE_ALIASES
|
|||
|
zstyle ':completion:*' menu select
|
|||
|
'';
|
|||
|
enableSyntaxHighlighting = true;
|
|||
|
enableVteIntegration = true;
|
|||
|
autocd = true;
|
|||
|
defaultKeymap = "viins";
|
|||
|
history = {
|
|||
|
expireDuplicatesFirst = true;
|
|||
|
extended = true;
|
|||
|
ignoreDups = true;
|
|||
|
ignoreSpace = true;
|
|||
|
share = false;
|
|||
|
};
|
|||
|
shellAliases = {
|
|||
|
testpl = ''echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"'';
|
|||
|
ls = "exa --icons";
|
|||
|
"..." = "../..";
|
|||
|
"...." = "../../..";
|
|||
|
"....." = "../../../..";
|
|||
|
"......" = "../../../../..";
|
|||
|
};
|
|||
|
localVariables = { KEYTIMEOUT = 1; };
|
|||
|
};
|
|||
|
}
|