mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
MISC: Various small fixes (#574)
* ns.ls filter can include leading slash in filename * scp from terminal accepts multiple filenames * terminal displays root / instead of ~ as base * cd with no args returns to root
This commit is contained in:
@@ -902,7 +902,7 @@ export const ns: InternalAPI<NSFull> = {
|
||||
];
|
||||
|
||||
if (!substring) return allFilenames.sort();
|
||||
return allFilenames.filter((filename) => filename.includes(substring)).sort();
|
||||
return allFilenames.filter((filename) => ("/" + filename).includes(substring)).sort();
|
||||
},
|
||||
getRecentScripts: () => (): RecentScript[] => {
|
||||
return recentScripts.map((rs) => ({
|
||||
|
||||
Reference in New Issue
Block a user