Skip to content

Commit

Permalink
fix: add 'clear' to terminal history (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
worming004 committed Jun 26, 2020
1 parent 7e9183b commit dbe34a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/familiar.html
@@ -1,4 +1,4 @@
"<ul>
<ul>
<li>React</li>
<li>Sketch</li>
</ul>
1 change: 1 addition & 0 deletions src/shell.js
Expand Up @@ -91,6 +91,7 @@ class Shell {
const args = input[1];

if (cmd === 'clear') {
this.updateHistory(cmd);
this.clearConsole();
} else if (cmd && cmd in this.commands) {
this.runCommand(cmd, args);
Expand Down

0 comments on commit dbe34a3

Please sign in to comment.