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