refactor(zsh): migrate settings
This commit is contained in:
parent
22caf77365
commit
994d575484
@ -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";
|
||||
|
Reference in New Issue
Block a user