Files
dotfiles/modules/home/zsh/default.nix
T
2025-10-29 19:40:19 +09:00

44 lines
1.0 KiB
Nix

{ 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'
'';
};
}