diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-03-18 12:04:07 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-03-18 12:04:07 -0400 |
| commit | cad9638875c04122b04d47242ddfc76e21e77029 (patch) | |
| tree | d80077f45b7b0d7513b3af0dabe6d2d992c846b7 /modules/user/zsh | |
| parent | ce19b701046c064a1eb39098d8537b2c4964a86e (diff) | |
progress on sway configuration
Diffstat (limited to 'modules/user/zsh')
| -rw-r--r-- | modules/user/zsh/default.nix | 25 | ||||
| -rw-r--r-- | modules/user/zsh/zshrc.zsh | 1 |
2 files changed, 26 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; + }; +} diff --git a/modules/user/zsh/zshrc.zsh b/modules/user/zsh/zshrc.zsh new file mode 100644 index 0000000..9b2083a --- /dev/null +++ b/modules/user/zsh/zshrc.zsh @@ -0,0 +1 @@ +PS1='%F{8}%(?..(%F{1}%?%F{8}%)-)[%F{1}%n@%M%F{8}]:%F{1}%5~%F{8}%# %f' |
