diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-08-17 10:57:19 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-08-17 11:03:41 +0000 |
commit | 197ff1d890d1db44e5de16ae2642c1c0969f3cf2 (patch) | |
tree | aac2de6b3a1843e103932f5de0ba144a16d09e02 /modules | |
parent | 64e59c22bf07e65edde82af846e1a9c812808eba (diff) | |
download | nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar.gz nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar.bz2 nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar.lz nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar.xz nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.tar.zst nixlib-197ff1d890d1db44e5de16ae2642c1c0969f3cf2.zip |
modules/zsh: fix options
Both the setopts and unsetopts weren't being generated correctly, but now they are.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/shell/zsh/zshrc.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/shell/zsh/zshrc.nix b/modules/shell/zsh/zshrc.nix index ba9b682a525a..5e730d765620 100644 --- a/modules/shell/zsh/zshrc.nix +++ b/modules/shell/zsh/zshrc.nix @@ -81,11 +81,11 @@ REPORTTIME=5 SAVEHIST=9000 ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets) -${lib.optionalString (enabledOptions == []) +${lib.optionalString (enabledOptions != []) "setopt ${lib.concatStringsSep " " enabledOptions}"} -${lib.optionalString (disabledOptions == []) - "unsetopt ${lib.concatStringsSep " " enabledOptions}"} +${lib.optionalString (disabledOptions != []) + "unsetopt ${lib.concatStringsSep " " disabledOptions}"} autoload -Uz colors && colors |