aboutsummaryrefslogtreecommitdiff
path: root/user/home/zsh
diff options
context:
space:
mode:
authorRosa <rosaontheweb@proton.me>2026-01-18 16:00:37 -0500
committerRosa <rosaontheweb@proton.me>2026-01-18 16:00:37 -0500
commitd8b9f3106942fe47635df682f79b7fb8051c8e8e (patch)
tree6804e0122140869be77b5e06311e8c50cba2b73f /user/home/zsh
parent93855184693b464a8fead011e254ad4a95e0d61b (diff)
finally cursors
Diffstat (limited to 'user/home/zsh')
-rw-r--r--user/home/zsh/default.nix17
-rw-r--r--user/home/zsh/zlogin.zsh4
2 files changed, 21 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;
+ };
+}
diff --git a/user/home/zsh/zlogin.zsh b/user/home/zsh/zlogin.zsh
new file mode 100644
index 0000000..94ce47c
--- /dev/null
+++ b/user/home/zsh/zlogin.zsh
@@ -0,0 +1,4 @@
+if [[ "$(tty)" == "/dev/tty1" ]]; then
+ export XCURSOR_THEME="catppuccin-mocha-dark-cursors"
+ exec sway
+fi