ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.55k stars 626 forks source link

CD + Tab unnecessary results in home directory #448

Closed AndyOkami closed 1 year ago

AndyOkami commented 1 year ago

Environment: WSL2 Debian Hey, I would like for cd+space+tab to show the files and folders in home directory, when used inside home directory. Instead I get the following: image How can I get the cd to work as it used to in normal bash? Where should I look and what should I change?

AndyOkami commented 1 year ago

Ok, I figured it out. Aparently a setting enabled "complete -A cd" in bashrc. By adding "complete -d cd" in bashrc, the issue was fixed

phyuany commented 1 year ago

Ok, I figured it out. Aparently a setting enabled "complete -A cd" in bashrc. By adding "complete -d cd" in bashrc, the issue was fixed

can you give a configuration sample ?

CouldBeThis commented 4 months ago

I had this problem to.

Eventually I figured out that adding

complete -d cd

to the .bashrc only works if it goes after

source /home/un/.config/broot/launcher/bash/br

which is for broot. I don't know why these two applications are interacting this way or if it would happen in other situation. The easiest advice might be to put the line at the very end of .bashrc.

phyuany commented 4 months ago

@.***

CouldBeThis commented 4 months ago

@phyuany fyi you just posted a comment by email. it looks like it was a mistake.