summaryrefslogtreecommitdiff
path: root/bin/clhs
diff options
context:
space:
mode:
Diffstat (limited to 'bin/clhs')
-rwxr-xr-xbin/clhs11
1 files changed, 11 insertions, 0 deletions
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