Drush do not autocomplete files and directory names I'm using Linux Mint 18 XFCE. Drush perfectly works, except for this annoying issue that it does not let me autocomplete file or directory names in a drush command.

Lets say that I want to sync my production files folder to my local files folder, so the command is:

drush rsync @site.prod:sites/default/files sites/default/files


When I'm typing the following parts I can pres tab and they are autocompleted:


drush
rsync
@site.prod


But when I'm typing sites/default/files it is not autocompleted, so I have to manually write the whole text, twice in this example.

It should be possible to do it in Linux because that's the normal behavior in Mac.

Just in case, here is the drush status result:

 Drupal version                  :  7.50                                           
 Site URI                        :  http://default                                 
 Database driver                 :  mysql                                          
 Database hostname               :  localhost                                      
 Database username               :  icolma                                         
 Database name                   :  icolma                                         
 Database                        :  Connected                                      
 Drupal bootstrap                :  Successful                                     
 Drupal user                     :  Anónimo                                        
 Default theme                   :  cornelius                                      
 Administration theme            :  seven                                          
 PHP configuration               :  /etc/php/7.0/cli/php.ini                       
 Drush version                   :  5.10.0                                         
 Drush configuration             :                                                 
 Drush alias files               :  /home/juankvillegas/.drush/aliases.drushrc.php 
 Drupal root                     :  /home/juankvillegas/git-repositories/icolma    
 Site path                       :  sites/default                                  
 File directory path             :  sites/default/files                            
 Private file directory path     :  sites/default/files/private                    
 Temporary file directory path   :  /tmp
The problem is caused by the Drush version (5.10.0) that is the one available in Linux Mint repositories.

Once I disabled that version and installed the most recent one following the instructions in http://docs.drush.org/en/master/install/ it started working.