some changes

This commit is contained in:
overflowerror 2014-07-21 22:34:04 +02:00
parent 372819d8e3
commit 3c1c78d4b5

View file

@ -159,8 +159,8 @@ WshClass.prototype.tick = function() {
prompt = prompt.replace("\\w", this.Environment.global['PWD'].replace(this.Environment.local['HOME'], "~/")); prompt = prompt.replace("\\w", this.Environment.global['PWD'].replace(this.Environment.local['HOME'], "~/"));
while (prompt.indexOf("\\u") != -1) while (prompt.indexOf("\\u") != -1)
prompt = prompt.replace("\\u", this.username); prompt = prompt.replace("\\u", this.username);
while (prompt.indexOf("\\u") != -1) while (prompt.indexOf("\\h") != -1)
prompt = prompt.replace("\\u", OS.hostname); prompt = prompt.replace("\\h", OS.hostname);
while (prompt.indexOf("\\$") != -1) while (prompt.indexOf("\\$") != -1)
prompt = prompt.replace("\\$", (this.uid == 0) ? "#" : "$"); prompt = prompt.replace("\\$", (this.uid == 0) ? "#" : "$");
while (prompt.indexOf("\\#") != -1) while (prompt.indexOf("\\#") != -1)