Networked applications like rsync and scp can tab complete when they are enabled with bash. But what if you want local tab completion without remote tab completion? Is it possible?
Networked applications like rsync and scp can tab complete when they are enabled with bash. But what if you want local tab completion without remote tab completion? Is it possible?
Assuming this is a Red Hat/CentOS-style system, you can remove the bash-completion for a specific application by navigating to
/etc/bash_completion.d/
and removing the entry (symbolic link) that corresponds to the command...Also, it seems that
complete -r commandname
can also work.Edit:
You can also edit the bash completion entries for a particular service. For instance, in
scp
, you can comment out the references to the_scp_remote_files
function to give local folder completion without expanding remote filesystems...