aboutsummaryrefslogtreecommitdiff
path: root/modules/user/zsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/zsh/default.nix')
-rw-r--r--modules/user/zsh/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/user/zsh/default.nix b/modules/user/zsh/default.nix
new file mode 100644
index 0000000..6f49406
--- /dev/null
+++ b/modules/user/zsh/default.nix
@@ -0,0 +1,25 @@
+{
+ config,
+ lib,
+ options,
+ ...
+}:
+{
+ config.programs.zsh = {
+ enable = lib.mkDefault true; # default user shell
+ autocd = true;
+ autosuggestion = {
+ enable = lib.mkDefault true;
+ strategy = [
+ "history"
+ "completion"
+ ];
+ };
+
+ history.ignoreAllDups = true;
+ initContent = builtins.readFile ./zshrc.zsh;
+ #loginExtra = builtins.readFile ./zlogin.zsh;
+ setOptions = [ "extendedglob" ];
+ syntaxHighlighting.enable = true;
+ };
+}