refactor(zsh): migrate settings

main
mandlm 2024-06-16 09:00:39 +02:00
parent 22caf77365
commit 994d575484
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 7 additions and 7 deletions

View File

@ -1,14 +1,18 @@
{ config, lib, pkgs, user, theme, ... }:
{ theme, ... }:
let
zsh_autosuggest_highlight_style = if theme == "light" then "fg=180" else "fg=10";
in
{
programs.zsh = {
enable = true;
# enableAutosuggestions = true;
# enableCompletion = true;
enableCompletion = true;
history.size = 10000;
autosuggestion = {
enable = true;
highlight = zsh_autosuggest_highlight_style;
};
initExtra = ''
function set_win_title(){
local TITLE=$(git config --get remote.origin.url || echo "$PWD")
@ -18,10 +22,6 @@ in
precmd_functions+=(set_win_title)
'';
sessionVariables = {
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style;
};
shellAliases = {
ls = "eza --group-directories-first --git";
neovide = "neovide --multigrid";