From 9b91a96a73341f5a47ef8c73c6cfefe0b176571d Mon Sep 17 00:00:00 2001 From: Asmir A Date: Mon, 1 Dec 2025 16:05:58 +0100 Subject: [PATCH] home/zsh: use new options for zshopt --- home/common/zsh.nix | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/home/common/zsh.nix b/home/common/zsh.nix index b0f937e..2ab6ff3 100644 --- a/home/common/zsh.nix +++ b/home/common/zsh.nix @@ -1,5 +1,10 @@ { pkgs, lib, ... }: { + home.sessionVariables = { + /*ZDOTDIR = "\"$HOME/\".config/zsh";*/ + /*HISTFILE = "\"$XDG_STATE_HOME\"/zsh/history";*/ + }; + programs.z-lua = { enableAliases = true; enableZshIntegration = true; @@ -9,6 +14,16 @@ autocd = true; enableCompletion = false; defaultKeymap = "viins"; + /* dotDir = "\"$XDG_CONFIG_HOME\"/zsh"; */ + + setOptions = [ + "c_bases" + "completealiases" + "completeinword" + "nobeep" + "nopromptcr" + "notify" + ]; shellAliases = { cfind = "${pkgs.cscope}/bin/cscope -C -R -L1"; @@ -76,18 +91,8 @@ # binds bindkey '^K' fzf-file-widget - # options - setopt nobeep - setopt nopromptcr - setopt c_bases - setopt completeinword - setopt completealiases - setopt notify - - # RPS1="" - # function chpwd() { ls; }