Skip to content

Commit 5ea0434

Browse files
committed
Merge pull request #335 from ajaxorg/hotfixrelease
* revert code in sidepanel
2 parents cf09860 + e879ab2 commit 5ea0434

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

client/ext/console/console.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,10 @@ module.exports = ext.register("ext/console/console", {
393393
},
394394

395395
getPrompt: function() {
396-
return "[guest@cloud9]:" + this.$cwd + "$";
396+
if(!this.username)
397+
this.username = (ide.workspaceId.match(/user\/(\w+)\//) || [,"guest"])[1];
398+
399+
return "[" + this.username + "@cloud9]:" + this.$cwd + "$";
397400
},
398401

399402
subCommands: function(cmds, prefix) {
@@ -668,4 +671,4 @@ module.exports = ext.register("ext/console/console", {
668671
}
669672
});
670673

671-
});
674+
});

0 commit comments

Comments
 (0)