1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

nushell: fix display output hook

This commit is contained in:
RGBCube 2025-07-19 00:11:07 +03:00
parent e3096645a8
commit 874471e1df
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -181,7 +181,8 @@ $env.config.hooks.env_change = {}
$env.config.hooks.display_output = {||
tee { table --expand | print }
| if $in != null { $env.last = $in }
# SQLiteDatabase doesn't support equality comparisions
| try { if $in != null { $env.last = $in } }
}
$env.config.hooks.command_not_found = []