2010-12-21 22:47:39 +01:00
|
|
|
{
|
|
|
|
"banner" : "blash version 0.1<br/>" +
|
|
|
|
"Copyright (C) 2010 BlackLight <blacklight@autistici.org>" +
|
|
|
|
"<br/>Licence GPLv3+: GNU GPL version 3 or later " +
|
|
|
|
"<<a class=\"bannerLink\" href=\"http://gnu.org/licences/gpl.html\">" +
|
|
|
|
"http://gnu.org/licences/gpl.html</a>><br/><br/>" +
|
|
|
|
"This is free software; you are free to change and " +
|
|
|
|
"redistribuite it.<br/>There is NO WARRANTY, to the " +
|
|
|
|
"extent permitted by law.<br/>" +
|
|
|
|
"Type '<span class=\"brief\">man blash</span>' for help on usage and available commands<br/><br/>",
|
|
|
|
|
2010-12-23 15:45:53 +01:00
|
|
|
"user" : "guest",
|
2010-12-21 22:47:39 +01:00
|
|
|
"machine" : "localhost",
|
|
|
|
"shellName" : "blash",
|
|
|
|
"basepath" : "/",
|
|
|
|
"promptText" : "[#{800}%n#{888}@#{800}%m#{888} %W] $ ",
|
|
|
|
"promptSequences" : [
|
|
|
|
{
|
|
|
|
"sequence" : "%n",
|
|
|
|
"default_text" : "blacklight",
|
|
|
|
"text" : function () {
|
|
|
|
return shell.json.user;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sequence" : "%m",
|
|
|
|
"default_text" : "localhost",
|
|
|
|
"text" : function () {
|
|
|
|
return shell.json.machine;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"sequence" : "%W",
|
|
|
|
"default_text" : "~",
|
|
|
|
"text" : function () {
|
2010-12-23 01:28:38 +01:00
|
|
|
return shell.path;
|
2010-12-21 22:47:39 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
"directories" : [
|
|
|
|
{
|
|
|
|
"path" : "/",
|
|
|
|
"type" : "directory",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path" : "/home",
|
|
|
|
"type" : "directory",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path" : "/home/blacklight",
|
|
|
|
"type" : "directory",
|
|
|
|
},
|
2010-12-23 01:28:38 +01:00
|
|
|
{
|
|
|
|
"path" : "/home/blacklight/mbox",
|
|
|
|
"type" : "file",
|
2010-12-23 15:45:53 +01:00
|
|
|
"content" : "No new mail",
|
2010-12-23 01:28:38 +01:00
|
|
|
},
|
2010-12-21 22:47:39 +01:00
|
|
|
{
|
|
|
|
"path" : "/etc",
|
|
|
|
"type" : "directory",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"path" : "/initrd",
|
|
|
|
"type" : "file",
|
|
|
|
"href" : "http://www.google.com",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
|
|
|
"commands" : [
|
2010-12-23 14:25:43 +01:00
|
|
|
"cat",
|
2010-12-22 02:28:45 +01:00
|
|
|
"cd",
|
2010-12-23 15:45:53 +01:00
|
|
|
"find",
|
2010-12-22 02:28:45 +01:00
|
|
|
"ls",
|
|
|
|
"man",
|
|
|
|
"pwd",
|
2010-12-23 15:45:53 +01:00
|
|
|
"whoami",
|
2010-12-21 22:47:39 +01:00
|
|
|
],
|
|
|
|
}
|
|
|
|
|