Since some time when I ls in the terminal (bash and fish) I get this error:
–color=tty: No such file or directory
So I can’t ls anymore! Can you imagine!
I use NixOS unstable package.
When I use another configuration.nix file, this error doesn’t happen. So I assume it must be something with my current configuration.nix file.
So far I tried to comment out everithing that had to do with bash and fish with no luck!
sorry NobbZ, I really don’t understand what I should do! Or what Information you need from me. I hope you can explain to me a little further explain me like I’m 5.
When in bash, use the command type ls and tell me what got printed, like in the example below:
$ type ls
ls is aliased to `ls --color=tty'
If this prints just ls is aliased to `--color=tty' or something like that, then you are somehow overwriting the default alias. The file that defines the alias hasn’t been touched since August 2022.
Interesting, at least we know now that it isn’t defined anywhere else.
I guess problem persists after a reboot or at least a re-login?
Certain changes don’t get applied immediately.
$which busybox
which: no busybox in (/run/wrappers/bin:/home/usr/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/home/usr/.nix-profile/bin:/etc/profiles/per-user/usr/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin)