about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2014-11-20 02:16:59 +0100
committeraszlig <aszlig@redmoonstudios.org>2014-11-20 02:16:59 +0100
commitf20bc75d791c36379af9dd65a0c4981c03852d13 (patch)
tree2a9176e9426a10a02b2db0e7b7fa04dccf53a09d /modules
parent82ecebd7314e1234db04430e0cabb559738dada7 (diff)
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 <aszlig@redmoonstudios.org>
Diffstat (limited to 'modules')
-rw-r--r--modules/zsh/default.nix10
1 files 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