Updated konsole
This commit is contained in:
@@ -3,11 +3,12 @@ window.cli.exec['cd'] = {
|
||||
return [];
|
||||
},
|
||||
help: () => {
|
||||
return 'Clear console output';
|
||||
return 'Change present working directory';
|
||||
},
|
||||
run: args => {
|
||||
const path = window.cli.fs(args[0]);
|
||||
if(!path) throw new Error(`cd: \'${args[0]}\': No such file or directory`)
|
||||
if(!path) throw new Error(`cd: \'${args[0]}\': No such file or directory`);
|
||||
if(typeof path != 'object') throw new Error(`cd: \'${args[0]}\': Not a directory`);
|
||||
|
||||
window.cli.pwd = window.cli.path(args[0]);
|
||||
window.cli._prompt.innerText = window.cli._buildPrompt();
|
||||
|
||||
Reference in New Issue
Block a user