diff options
Diffstat (limited to 'user/home/zsh')
| -rw-r--r-- | user/home/zsh/default.nix | 17 | ||||
| -rw-r--r-- | user/home/zsh/zlogin.zsh | 4 |
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 |
