Some resources for my daily shell.

Table Of Contents

  1. Fix for ssh calls from bash completion

Fix for ssh calls from bash completion

Ian Macdonald's bash completion which is commonly packaged in many Linux distribution helps me a lot. However, with some distribs, I never managed to have completion through ssh work out of the box, although it appears to be a great help to complete paths of scp or rsync arguments. A mysterious -o 'Batchmode yes' is inserted in the ssh command line, and some versions of ssh does not seem to like it. Here is simple redefinitions of some functions from /etc/bash_completion without this option, it is intended to be loaded after the default bash completion definitions.