mirror of
https://github.com/sigmasternchen/Wish
synced 2025-03-15 07:28:56 +00:00
some changes
This commit is contained in:
parent
372819d8e3
commit
3c1c78d4b5
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue