nixos-config/home-manager/zsh.nix

32 lines
713 B
Nix
Raw Normal View History

2024-06-16 07:00:39 +00:00
{ theme, ... }:
2022-08-18 19:15:03 +00:00
let
zsh_autosuggest_highlight_style = if theme == "light" then "fg=180" else "fg=10";
in
{
programs.zsh = {
enable = true;
2024-06-16 07:00:39 +00:00
enableCompletion = true;
history.size = 10000;
2024-06-16 07:00:39 +00:00
autosuggestion = {
enable = true;
highlight = zsh_autosuggest_highlight_style;
};
initExtra = ''
function set_win_title(){
local TITLE=$(git config --get remote.origin.url || echo "$PWD")
echo -ne "\033]0; $(basename "$TITLE") \007"
}
precmd_functions+=(set_win_title)
'';
2022-07-07 15:22:12 +00:00
shellAliases = {
2023-10-31 08:13:03 +00:00
ls = "eza --group-directories-first --git";
neovide = "neovide --multigrid";
xclip = "xclip -selection clipboard";
2022-07-07 15:22:12 +00:00
};
};
}