From 47ea7f888cb0117635d69ba6d36464714801c9af Mon Sep 17 00:00:00 2001 From: Warrick Lo Date: Fri, 3 Dec 2021 05:50:44 -0800 Subject: Add shell scripts --- bin/clhs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/clhs (limited to 'bin/clhs') diff --git a/bin/clhs b/bin/clhs new file mode 100755 index 0000000..8c6da89 --- /dev/null +++ b/bin/clhs @@ -0,0 +1,11 @@ +#!/bin/sh + +# Clear shell history. + +if [ -f "$HISTFILE" ]; then + : > "$HISTFILE" +fi + +# Script must be sourced for this to work. +history -c > /dev/null 2>&1 +history -p > /dev/null 2>&1 -- cgit v1.2.3