diff --git a/config/commands.js b/config/commands.js index 131a952a..8ff3a9e8 100644 --- a/config/commands.js +++ b/config/commands.js @@ -134,6 +134,11 @@ const commands = { term.stylePrint(_filesHere().join(" ")); }, + date: function() { + const date = new Date(); + term.stylePrint(date.toString()); + }, + // I am so, so sorry for this code. cd: function(args) { let dir = args[0] || "~"; @@ -395,6 +400,14 @@ const commands = { term.stylePrint(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource ${args[0]}.`); }, + wget: function(args) { + if (args[0] === undefined) { + term.stylePrint("wget: missing URL"); + return + } + term.stylePrint(`%wget% not installed. try: %curl% ${args[0]}`); + }, + ftp: function(args) { term.command(`curl ${args.join(" ")}`); },