about summary refs log tree commit diff
path: root/users/fcuny
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-09 18:02:01 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-09 18:02:01 -0800
commitf418fec2dfed5eaddb47df96788306134b0f09c0 (patch)
treeba6adefeb831e1fc255c878f1193ef62c0f1beb6 /users/fcuny
parenthome-manager: expand zsh configuration (diff)
downloadworld-f418fec2dfed5eaddb47df96788306134b0f09c0.tar.gz
home-manager: fix path for zsh.nix
Diffstat (limited to 'users/fcuny')
-rw-r--r--users/fcuny/zsh.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/users/fcuny/zsh.nix b/users/fcuny/zsh.nix
new file mode 100644
index 0000000..be827b4
--- /dev/null
+++ b/users/fcuny/zsh.nix
@@ -0,0 +1,21 @@
+{config, lib, pkgs, ...}:
+
+{
+
+  xdg.configFile."zsh/personal".source = config.lib.file.mkOutOfStoreSymlink ../configs/zsh;
+
+  programs.zsh = {
+    enable = true;
+    enableAutosuggestions = true;
+    enableCompletion = true;
+    defaultKeymap = "emacs";
+    history = {
+      save = 100000;
+      extended = true;
+      ignoreDups = true;
+    };
+    initExtra = ''
+      source ${config.xdg.configHome}/zsh/personal/init.zsh
+    '';
+  };
+}