New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make -t without arguments behave like in ls #519
Comments
agreed 100% on this. I love exa! But the lack of For now, I've set up a little function that |
Check out LSD for a similar tool that is actually a drop-in replacement for LS. |
+1, LSD is really great. Highly recommended. |
Since I prefer ls() {
if [ "$1" = "-ltr" ]; then
exa -lsnew "${@:2}"
elif [ "$1" = "-lrt" ]; then
exa -lsnew "${@:2}"
else
exa "$@"
fi
} (In |
Latest version of exa adds support for optional argument for flags, so it will be possible to change Edit: one important note is that in |
Basically have the same experience, as varenc writes. |
Currently `exa` can't work as a drop-in `ls` replacement due to `-t` having a very different behaviour. However `-t` currently only work when used with a value, and is invalid when used without any value. This patch changes the behaviour of `-t` when used with no arguments to behave exactly like it does for `ls`. When used with a value, it continues behaving as in previous versions of `exa`. Fixes: ogham#519
I've taken a shot at this: #1102 Seems to work, but PR still needs work. |
Currently exa can't work as a drop-in `ls` replacement due to `-t` having a very different behaviour. However `-t` currently only works when used with a value, and is invalid when used without any value. This patch changes the behaviour of exa when `-t` is passed with no value to behave the same as ls. When used with a value, it continues behaving as in previous versions of `exa`. Fixes: ogham#519
Currently exa can't work as a drop-in `ls` replacement due to `-t` having a very different behaviour. However `-t` currently only works when used with a value, and is invalid when used without any value. This patch changes the behaviour of exa when `-t` is passed with no value to behave the same as ls. When used with a value, it continues behaving as in previous versions of `exa`. Fixes: ogham#519
This wrapper script is a solution for anybody that it still concerned about this. It makes https://gist.github.com/eggbean/74db77c4f6404dd1f975bd6f048b86f8 |
This -t thing really is a problem, it's flow-breaking and existing
ls
-based alias-breaking. It's basically infuriating because everything else works so well. Even an env variable I could set would be great.#294 (comment)
#284 (comment)
The text was updated successfully, but these errors were encountered: