Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am running 11.04.

Every time i tried to a command such as

mv flieA $HOME/<somedir>/

Terminal automatically put "\" in front of $HOME when I hit the 'Tab' key for autocomplete

mv flieA \$HOME/<somedir>/

it's incredibly annoying, how can i fix this.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Use ~ instead of $HOME. It is shorter to write, and it will not mess up the autocompletion.

egil@morgenstern [~] $ ls \$HOME/
egil@morgenstern [~] $ ls ~/
share|improve this answer
    
Right that's one solution, however I use a lot of customized env. variables, it does that every time i use "$", is there is a more permanent solution? I don't recall the terminal did that in previous releases. –  adjfac May 26 '11 at 18:24
1  
The problem lies with Bash. See lists.gnu.org/archive/html/bug-bash/2011-02/msg00274.html –  Egil May 27 '11 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.