postmodern / chruby

Changes the current Ruby
MIT License
2.85k stars 190 forks source link

fix invald `ls -A` change to `ls -a` #414

Closed benlieb closed 5 years ago

benlieb commented 5 years ago

Recently a lot of people (myself included) are using the lsd replacement of ls. It is common to alias ls=lsd.

When you do this lsd complains about the ls -A used here:

image

image

This PR simply replaces this with ls -a

havenwood commented 5 years ago

One option for you is to source chruby before you declare your lsd alias. That way, the system ls will work as expected.

This is an aside, but you might want to also check out exa, a modern replacement for ls.

havenwood commented 5 years ago

Escaping the command with \ls -A or "ls" -A would avoid your alias. Using command ls -A would also override shell functions in addition to aliases. We are currently not escaping all commands.

benlieb commented 5 years ago

Thanks for the info, and reply! I'll just put chruby before the alias.