Bash: Stop "cd" from "go to home"

2015-09-25 Thread Michael
Is there a way to stop "cd" with no argument from going home? Alternatively, is there a way to make tab completion with nothing typed, in a directory with only one non-dot file, to match that one file? My issue: I type "ls", see only the directory that I want to go to, hit "cd ", and it fails

Re: Bash: Stop "cd" from "go to home"

2015-09-25 Thread @lbutlr
On 28 Jul 2015, at 11:06, Michael wrote: > Is there a way to stop "cd" with no argument from going home? Alias cd='cd /not/home' but that would be a terrible idea. > Alternatively, is there a way to make tab completion with nothing typed, in a > directory with only one