mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-22 09:13:07 +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:
@@ -197,7 +197,7 @@ export function TerminalInput(): React.ReactElement {
|
||||
// Run command.
|
||||
if (event.key === KEY.ENTER && value !== "") {
|
||||
event.preventDefault();
|
||||
Terminal.print(`[${Player.getCurrentServer().hostname} ~${Terminal.cwd()}]> ${value}`);
|
||||
Terminal.print(`[${Player.getCurrentServer().hostname} /${Terminal.cwd()}]> ${value}`);
|
||||
Terminal.executeCommands(value);
|
||||
saveValue("");
|
||||
return;
|
||||
@@ -282,7 +282,7 @@ export function TerminalInput(): React.ReactElement {
|
||||
if (Settings.EnableBashHotkeys) {
|
||||
if (event.code === KEYCODE.C && event.ctrlKey && ref && ref.selectionStart === ref.selectionEnd) {
|
||||
event.preventDefault();
|
||||
Terminal.print(`[${Player.getCurrentServer().hostname} ~${Terminal.cwd()}]> ${value}`);
|
||||
Terminal.print(`[${Player.getCurrentServer().hostname} /${Terminal.cwd()}]> ${value}`);
|
||||
modifyInput("clearall");
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ export function TerminalInput(): React.ReactElement {
|
||||
className: classes.input,
|
||||
startAdornment: (
|
||||
<Typography color={Terminal.action === null ? "primary" : "secondary"} flexShrink={0}>
|
||||
[{Player.getCurrentServer().hostname} ~{Terminal.cwd()}]>
|
||||
[{Player.getCurrentServer().hostname} /{Terminal.cwd()}]>
|
||||
</Typography>
|
||||
),
|
||||
spellCheck: false,
|
||||
|
||||
Reference in New Issue
Block a user