Skip to content

Commit 873d690

Browse files
committed
New display current directory support
1 parent 0cac661 commit 873d690

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

js/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ console.log("Welcome to the shell!")
22
window.onload = function () {
33
this.username = "username"
44
this.hostname = "hostname"
5+
this.workingDirectory = "~"
56
document.getElementById("shellinput").value = "";
6-
document.getElementById("uname-hname").innerText = `${username}@${hostname}`
7+
document.getElementById("uname-hname").innerText = `${username}@${hostname}:${workingDirectory}$`
78
}
89

910
const commands = [

0 commit comments

Comments
 (0)