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 just install tmux on Ubuntu 12.04 LTS and it throws me this error when I try to use tab completion for simple commands like 'cd' or 'mv' in the /etc/bash_completion file.

command substitution: line 74: syntax error near unexpected token `done'

However, I can use tab completion in my normal terminal or in byobu. Has anyone else encountered this issue or knows how to fix it? I do have the bash completion file included in my .bashrc.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

I had the similar question, until I found this.

http://blog.e-thang.net/2012/08/14/tmux-and-bash-tab-completion/

Pretty good, colorful, explanation.

Reference:

  • /usr/share/byobu/keybindings/f-keys.tmux

  • /usr/share/byobu/keybindings/f-keys.tmux.disable

share|improve this answer
add comment

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.