Skip to content
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

Add "l" as alias for "ls". #1204

Closed
wants to merge 1 commit into from
Closed

Conversation

rudfol
Copy link

@rudfol rudfol commented Dec 24, 2013

To be more precise, "ls -CF". Same effect.
This is purely for user convenience for those who used different emulators.

@ghost
Copy link

ghost commented Dec 26, 2013

You should take a look at #731. This shouldn't be a default.

@zanchey
Copy link
Member

zanchey commented Dec 26, 2013

In which shells is l defined by default? I can't see it in bash or zsh on my machines (Debian).

@rudfol
Copy link
Author

rudfol commented Dec 26, 2013

@zanchey The emulator I'm using is the default one packaged with Xubuntu 12.04 which I upgraded to 13.10. It uses bash shell.

@Undeterminant I have looked in to the issue #731 which he expands: "It's arguably "fishy": the user can see the expanded form, it's not hidden in an alias; it's instant and live, similar to completions.."

As you can understand above, he's main point is that it is not hidden. However what I'm submitting here is a simple matter, an added alias "l" which is so simple there aren't anything to be hidden. Therefore there is no need to expand this alias "l" live into its form "ls -CF", which is just plain same as normal "ls". No complexity.

This alias is very convenient to use and I'm certain if other shells don't have it, as @zanchey informed us, this is a massive feature for increased productivity for professional work around terminal.

Faithfully,

@ghost
Copy link

ghost commented Dec 29, 2013

The benefit to using the expanded form is so that you can have all of the benefits of tab completions without having to mess around with anything. The default ls is equivalent to -CF anyway because it'll use columns on a TTY and 1-width columns on piping, which is the expected behaviour. Having the override is probably less portable, and not useful to the average person, therefore not worthy of a default.

@rudfol
Copy link
Author

rudfol commented Dec 29, 2013

I understand that the default ls is equivalent to -CF.
Alias option isn't an override is it? Or am I thinking something different.
118 bytes added to the .../function folder wouldn't stop the portability I believe or can you expand on what you mean by being portable please.
I really found having 'l' alias really really useful, really. :')

sincerely,

@rudfol
Copy link
Author

rudfol commented Dec 29, 2013

Would it be better to omit the '-CF' option in this file since the normal 'ls' and the 'ls -CF' is the same.

kind regards,

@ghost
Copy link

ghost commented Jan 1, 2014

It would be better as an abbreviation instead of a function, so that tab completion works. And no, it's not worth adding to the folder because people might want to remap the l abbreviation to something else (maybe ls -l) and your personal preference is not worth overriding the preference of everyone else.

@rudfol
Copy link
Author

rudfol commented Jan 1, 2014

Very well.
Now understand the valid reason.

Regards,

@rudfol rudfol closed this Jan 1, 2014
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants