aboutsummaryrefslogtreecommitdiff
path: root/user/home/zsh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'user/home/zsh/default.nix')
-rw-r--r--user/home/zsh/default.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/user/home/zsh/default.nix b/user/home/zsh/default.nix
new file mode 100644
index 0000000..ffc8977
--- /dev/null
+++ b/user/home/zsh/default.nix
@@ -0,0 +1,17 @@
+{ config, ... }:
+{
+ programs.direnv.enable = true;
+ programs.zsh = {
+ enable = true;
+ autocd = true;
+ autosuggestion.enable = true;
+ defaultKeymap = "viins";
+ history.ignoreAllDups = true;
+ initContent = ''
+ PS1="%F{1}%n %B%5~%b %F{8}%# %f"
+ '';
+
+ loginExtra = if (config.desktop.windowManager == "sway") then builtins.readFile ./zlogin.zsh else "";
+ syntaxHighlighting.enable = true;
+ };
+}