You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shadowing the original ls when enabling eza is extremely problematic for NuShell.
In NuShell ls is not what it is in other shells and can't be replaced by eza. ls outputs structured results and has a large list of options. Doing so creates defects with any NuShell script that use ls.
I see that this seems to be a part of home-manager for some time already. I guess the user base that uses eza + NuShell + 'create custom scripts' is pretty small.
Work around: Disable eza shell integration for NuShell.
Better solution: remove the ls = eza from NuShell aliases. We use e,ee, el and so on.
P.S.: I think that adding any alias for ls is a major problem in any shell!
This is why I had split the aliases option into an integration option for each shell, and Nushell is disabled by default. Using other commands for the aliases could be a decent option. I don't think using eza as a drop in replacement for ls is an issue in other shells. If users don't want to use the aliases, they can install the eza package without enabling the option.
I wonder, because I found the ls alias in Nushell is enabled by default. I only had eza.enable=true in the config so far. After adding eza.enableNushellIntegration=false, the alias is gone (and I am 'happy'). I triple checked this (also upgrading my flake sources).
When it comes to other shells, there is less of a problem because eza | tee and eza -l | tee are identical to the ls variants.
Are you following the right branch?
Is there an existing issue for this?
Issue description
Shadowing the original
ls
when enablingeza
is extremely problematic for NuShell.In NuShell
ls
is not what it is in other shells and can't be replaced byeza
.ls
outputs structured results and has a large list of options. Doing so creates defects with any NuShell script that usels
.I see that this seems to be a part of home-manager for some time already. I guess the user base that uses
eza
+NuShell
+ 'create custom scripts' is pretty small.Work around: Disable
eza
shell integration for NuShell.Better solution: remove the
ls = eza
from NuShell aliases. We usee
,ee
,el
and so on.P.S.: I think that adding any alias for
ls
is a major problem in any shell!Maintainer CC
@michaelBelsanti
System information
The text was updated successfully, but these errors were encountered: