Skip to content

Commit

Permalink
feat(chore): help by ? (#13)
Browse files Browse the repository at this point in the history
show help by typing ?
  • Loading branch information
davidem authored Jun 7, 2024
1 parent 421b288 commit 711af86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@
echoArray(misc);
break;
case 'help':
case '?':
term.echo(help);
break;
case 'all':
Expand Down Expand Up @@ -411,7 +412,7 @@
break;
default:
term.echo("\nunknown command: " + command + "\n" +
"please type 'help' for a list of available commands\n");
"please type 'help' or '?' for a list of available commands\n");
}
}, {
prompt: '[[;{{ .Site.Params.promptColor | default "grey" }};]{{ .Site.Params.prompt }}][[;{{ .Site.Params.promptSimbolsColor | default "grey" }};]{{.Site.Params.promptSimbols | default ":~$"}}]' + " ",
Expand Down

0 comments on commit 711af86

Please sign in to comment.