feat(nushell): add lsa & dus wrappers to prevent column truncation

`lsa` (ls -al) and `dus` (du) render the table at a fixed width of 350 so
columns like size/apparent/physical are never dropped to "..." when the
natural table is wider than the terminal.
This commit is contained in:
Ryan Yin
2026-08-15 20:35:15 +08:00
parent 495c366938
commit 9842a8a17f
+18
View File
@@ -70,6 +70,24 @@ $env.config.rm.always_trash = true
# before an error will be generated.
$env.config.recursion_limit = 50
# ----------------------
# Classic-style commands
# ----------------------
# Nushell drops table columns that don't fit the terminal width and replaces
# them with "...". These wrappers render the table at a fixed width so no
# column (e.g. `size`, `apparent`, `physical`) is ever hidden.
def lsa [] {
ls -al | table --width 350
}
def dus [path: string = ""] {
if $path == "" {
du | table --width 350
} else {
du $path | table --width 350
}
}
# ---------------------------
# Commandline Editor Settings
# ---------------------------