We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12a357a commit 9a1bb89Copy full SHA for 9a1bb89
instructors/terminal.sh
@@ -16,6 +16,14 @@ SESSION="${SESSION:-swc}"
16
# LOG_FILE=/tmp/my-log ./swc-shell-split-window.sh
17
LOG_FILE="${LOG_FILE:-/tmp/$SESSION-split-log-file}"
18
19
+#erase existing history if passed --clean_history
20
+for arg in "$@"; do
21
+ if [ "$arg" == "--clean_history" ] || [ "$arg" == "-c" ]; then
22
+ echo "" > "${LOG_FILE}"
23
+ break
24
+ fi
25
+done
26
+
27
# The number of lines of history to show. Defaults to 5, but you can
28
# override from the calling process.
29
HISTORY_LINES="${HISTORY_LINES:-5}"
0 commit comments