Home > database >  How to expand $PWD when using tab to autocomplete?
How to expand $PWD when using tab to autocomplete?

Time:01-27

When I was using my Ubuntu system, I could type cd $PWD/ and when I hit TAB, the $PWD would change to the actual working directory I was in; for example, cd /home/daverbuj/.

Now that I've changed computers and no longer using Ubuntu, I can't replicate this feature. Is there some way to configure my .bashrc or something similar to autocomplete/expand my paths that I use?

CodePudding user response:

Add shopt -s direxpand to your rc files.

  •  Tags:  
  • Related