Skip to content

Commit b3632df

Browse files
save file
1 parent efb6550 commit b3632df

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

utils/misc/nodejs-terminal/v2.0/nodejs-terminal-v2.0.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,8 @@
921921
dir += '/';
922922
}
923923
if(user_dir===undefined){
924-
user_dir = dir.slice(2,-1);
924+
user_dir = dir.slice(2,-1);
925+
shell.user_dir = user_dir;
925926
console.log('[ user_dir ]',user_dir);
926927
}
927928
if(dir.indexOf('~')!=-1){
@@ -935,6 +936,8 @@
935936
cwd_abs = dir;
936937
cwd = null;
937938
}
939+
shell.cwd_abs = cwd_abs;
940+
shell.cwd = cwd;
938941
console.log('[ cwd_abs ]',cwd_abs);
939942
console.log('[ cwd ]',cwd);
940943
}

0 commit comments

Comments
 (0)