From ccb17de630a29607d5afb01b98b947f114b56bf5 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Wed, 19 Feb 2025 12:13:49 -0800 Subject: [PATCH] zsh: remove rm-related safety checks --- .config/shell/bin/nvc | 4 ++-- .zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/shell/bin/nvc b/.config/shell/bin/nvc index 250fb1b..920241a 100755 --- a/.config/shell/bin/nvc +++ b/.config/shell/bin/nvc @@ -2,5 +2,5 @@ # Purpose: edit nvim configuration while being cd'd into the directory that # most of the files live so they can easily be :e'd # Usage: nvc [$EDITOR options] -cd ~/.config/nvim/lua \ - && $EDITOR "$@" ../init.lua +cd ~/.config/nvim/lua/blake \ + && $EDITOR "$@" ../../init.lua diff --git a/.zshrc b/.zshrc index 1d7d87a..a929c02 100644 --- a/.zshrc +++ b/.zshrc @@ -127,8 +127,8 @@ Set the SKIP_P10K_THEME environment variable to 'true' or make a configuration t setopt histignorealldups # If a new command is a duplicate, remove the older one setopt autocd # if only directory path is entered, cd there. setopt interactive_comments # allow typing comments in line - setopt no_rm_star_silent # Ensure the user wants to execute 'rm *' - setopt rm_star_wait # Wait before accepting 'rm *' or 'rm /path/*' + setopt rm_star_silent # (don't) Ensure the user wants to execute 'rm *' + setopt no_rm_star_wait # (don't) Wait before accepting 'rm *' or 'rm /path/*' setopt short_loops # allow things like 'if [ 1=1 ] { echo "okay"}' < https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Alternate-Forms-For-Complex-Commands setopt pipe_fail # When a pipe fails, show the non-0 exit code for the exit code