From f20bc75d791c36379af9dd65a0c4981c03852d13 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 20 Nov 2014 02:16:59 +0100 Subject: modules/zsh: Fix formatting and check for enable. We don't want to have the zsh module active for _all_ machines, only for warkstations. Signed-off-by: aszlig --- modules/zsh/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/zsh/default.nix b/modules/zsh/default.nix index fa6769f0..24c09f23 100644 --- a/modules/zsh/default.nix +++ b/modules/zsh/default.nix @@ -1,4 +1,4 @@ -{ lib, ... }: +{ config, lib, ... }: with lib; @@ -7,7 +7,7 @@ with lib; enable = mkEnableOption "zsh"; }; - config = { + config = mkIf config.vuizvui.zsh.enable { environment.shellInit = '' export EDITOR="vim" export EMAIL="aszlig@redmoonstudios.org" @@ -61,8 +61,10 @@ with lib; %SAt %p: Hit TAB for more, or the character to insert%s zstyle ':completion:*' list-suffixes true zstyle ':completion:*' matcher-list ''' \ - 'm:{[:lower:]}={[:upper:]} m:{[:lower:][:upper:]}={[:upper:][:lower:]}' \ - 'l:|=* r:|=*' 'r:|[._-]=** r:|=**' + 'm:{[:lower:]}={[:upper:]}' \ + 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' \ + 'l:|=* r:|=*' \ + 'r:|[._-]=** r:|=**' zstyle ':completion:*' max-errors 2 numeric zstyle ':completion:*' menu select=long zstyle ':completion:*' original true -- cgit 1.4.1