From 1fea9618ba81a7f23d4dba27d0cb0ddb288c15f7 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 25 Oct 2022 01:42:46 -0700 Subject: [PATCH] zsh: remove rm and mv confirmations --- modules/universal/home-manager/zsh.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/universal/home-manager/zsh.nix b/modules/universal/home-manager/zsh.nix index 29849b6a..eeba6bab 100644 --- a/modules/universal/home-manager/zsh.nix +++ b/modules/universal/home-manager/zsh.nix @@ -22,6 +22,9 @@ # see for an example: autoload -Uz zmv + # disable `rm *` confirmations + setopt rmstarsilent + function nd() { mkdir -p "$1"; pushd "$1"; @@ -44,9 +47,8 @@ "prompt" "git" ]; - prompt = { - theme = "powerlevel10k"; - }; + prompt.theme = "powerlevel10k"; + utility.safeOps = false; # disable `mv` confirmation (and supposedly `rm`, too) }; };