From b9842f9890479d7db98885f17934f554d70d2fac Mon Sep 17 00:00:00 2001 From: "Azalea (on HyDEV-Daisy)" Date: Wed, 21 Sep 2022 21:48:03 -0400 Subject: [PATCH] [F] Fix modern-replace --- scripts/zshrc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zshrc.sh b/scripts/zshrc.sh index 2381d31..cb98b62 100755 --- a/scripts/zshrc.sh +++ b/scripts/zshrc.sh @@ -9,7 +9,7 @@ setopt appendhistory modern-replace() { orig_cmd="$1" new_cmd="$2" - orig_cmd_with_args="${3:-$2}" + orig_cmd_with_args="${3:-$1}" new_cmd_with_args="${4:-$2}" if command -v "$new_cmd" &> /dev/null; then