change directory selects non-folders
Why does the linux command cd select non folders when doing tab completion? Say I have environment.rb and a folder titled environments. If I did cd and did env tab, I would get ‘environment’, because it doesn’t know how to go from there. It needs to go, “hey, that’s not a directory! I won’t complete to that!” because I know app completion doesn’t do that bs, if you do ./appname (but incomplete) and hit tab, and it’s not +x, it will not open it. I know directories work in a similar way, there is a directory flag, so why is this not done with cd?
Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.
Powered by WP Greet Box WordPress Plugin
