about summary refs log tree commit diff
path: root/programs/zsh/default.nix
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-26 11:51:36 +0200
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-09-26 11:51:36 +0200
commit8d22fcabcc9e5a6c1ca15a51def7059060ececad (patch)
tree865f874c842f78668aebfd47fa95a27d7e54086a /programs/zsh/default.nix
parent97cf939f17abc850f642f668a286c85b31bf2b41 (diff)
downloaddots-8d22fcabcc9e5a6c1ca15a51def7059060ececad.tar.gz
dots-8d22fcabcc9e5a6c1ca15a51def7059060ececad.zip
Add vi in zsh
Diffstat (limited to 'programs/zsh/default.nix')
-rw-r--r--programs/zsh/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/programs/zsh/default.nix b/programs/zsh/default.nix
index 0e19da1..a593fed 100644
--- a/programs/zsh/default.nix
+++ b/programs/zsh/default.nix
@@ -4,7 +4,8 @@ let
   isDarwin = builtins.currentSystem == "x86_64-darwin";
   platformAliases =
     if isDarwin then ../../platforms/darwin/aliases.nix
-    else ../../platforms/linux/aliases.nix
+    else ../../platforms/linux/aliases.nix;
+in
 {
   programs.zsh = {
     enable = true;
@@ -20,9 +21,7 @@ let
     shellAliases = import ../aliases.nix // import platformAliases;
     defaultKeymap = "viins";
     initExtraBeforeCompInit = builtins.readFile ./precomp.zshrc;
-    initExtra = ''
-      _comp_options+=(globdots)
-    '';
+    initExtra = builtins.readFile ./postcomp.zshrc;
 
     sessionVariables = rec {
       PROMPT="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b ";