From 167c181439f1e017888c52115257be67d8172695 Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Tue, 13 May 2025 11:09:24 +0100 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index de512d2..00ff423 100644 --- a/README.md +++ b/README.md @@ -167,6 +167,12 @@ resize &>/dev/null || { stty -echo;printf "\e[18t"; read -t5 -rdt R;IFS=';' read # stty sane rows 60 cols 160 ``` +We use `anew` a lot, and this is a quick workaround: +```shell +xanew() { awk 'hit[$0]==0 {hit[$0]=1; print $0}'; } +which anew &>/dev/null || alias anew=xanew +``` + Bonus tip: Any command starting with a " " (space) will [not get logged to history](https://unix.stackexchange.com/questions/115917/why-is-bash-not-storing-commands-that-start-with-spaces) either. ```