mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +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:
@@ -163,7 +163,7 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
// Just some booleans so the mismatch between command length and arg number are not as confusing.
|
||||
const onCommand = commandLength === 1;
|
||||
const onFirstCommandArg = commandLength === 2;
|
||||
const onSecondCommandArg = commandLength === 3;
|
||||
// const onSecondCommandArg = commandLength === 3; // unused
|
||||
|
||||
// These are always added.
|
||||
addGlobalAliases();
|
||||
@@ -239,11 +239,12 @@ export async function getTabCompletionPossibilities(terminalText: string, baseDi
|
||||
return possibilities;
|
||||
|
||||
case "scp":
|
||||
if (onFirstCommandArg) {
|
||||
addScripts();
|
||||
addTextFiles();
|
||||
addLiterature();
|
||||
} else if (onSecondCommandArg) addServerNames();
|
||||
if (!onFirstCommandArg) {
|
||||
addServerNames();
|
||||
}
|
||||
addScripts();
|
||||
addTextFiles();
|
||||
addLiterature();
|
||||
return possibilities;
|
||||
|
||||
case "rm":
|
||||
|
||||
Reference in New Issue
Block a user