From ef7c54c0f9d800629f6ed120153f401c381c1c74 Mon Sep 17 00:00:00 2001 From: moons14 Date: Wed, 29 Oct 2025 19:40:19 +0900 Subject: [PATCH] oh my zsh --- README.md | 1 + modules/home/ghostty/config | 3 +-- modules/home/zsh/default.nix | 43 ++++++++++++++++++++++++++++++++++++ 3 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 modules/home/zsh/default.nix diff --git a/README.md b/README.md index 1cd5b20..b1477ec 100644 --- a/README.md +++ b/README.md @@ -37,3 +37,4 @@ NixOS + Home Manager ## Inspired - [Zaney/zaneyos](https://gitlab.com/Zaney/zaneyos) +- [fa0311/.zshrc](https://gist.github.com/fa0311/d37d53ff39c73c54c883379e8e3732df) \ No newline at end of file diff --git a/modules/home/ghostty/config b/modules/home/ghostty/config index 3f89c89..d7962c0 100644 --- a/modules/home/ghostty/config +++ b/modules/home/ghostty/config @@ -1,8 +1,7 @@ theme = tokyonight background-blur-radius = 20 background-opacity = 0.9 -# font-family = BlexMono Nerd Font Mono -font-family = Noto Serif CJK JP +font-family = BlexMono Nerd Font Mono mouse-hide-while-typing = true window-decoration = true diff --git a/modules/home/zsh/default.nix b/modules/home/zsh/default.nix new file mode 100644 index 0000000..9c8b88f --- /dev/null +++ b/modules/home/zsh/default.nix @@ -0,0 +1,43 @@ +{ config, pkgs, ... }: + +{ + programs.zsh = { + enable = true; + enableCompletion = true; + + # Oh My Zsh + oh-my-zsh = { + enable = true; + theme = "robbyrussell"; + plugins = [ "git" ]; + }; + + autosuggestions.enable = true; + syntaxHighlighting.enable = true; + + initExtra = '' + # ---- from gist: export / history size ---- + export HISTSIZE=999999999 + export HISTFILESIZE=999999999 + + # ---- from gist: setopt ---- + setopt extended_history + setopt hist_allow_clobber + setopt hist_fcntl_lock + setopt hist_find_no_dups + setopt hist_ignore_all_dups + setopt hist_ignore_dups + setopt hist_ignore_space + # setopt hist_no_functions + # setopt hist_no_store + setopt hist_reduce_blanks + setopt hist_save_no_dups + setopt hist_verify + setopt inc_append_history_time + + # ---- from gist: aliases ---- + alias docker-compose="docker compose" + alias clearsign='export GPG_TTY=$(tty) && openssl rand -hex 16 | gpg --clearsign' + ''; + }; +}