[Bash-completion-devel] Bug#545978: bash-completion: completion for sshfs

Colin Watson cjwatson at ubuntu.com
Thu Sep 10 12:29:18 UTC 2009


Package: bash-completion
Version: 1:1.0-3
Severity: wishlist
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch karmic

This bug was originally filed as:

  https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/415271

It would be useful to include completion for sshfs, which apparently can
essentially just use the same completion code as scp. Here follows a
patch by Timo Baumann to add this, updated by me to apply to the current
git tree.

diff --git a/contrib/ssh b/contrib/ssh
index 85325aa..604d24e 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -114,7 +114,7 @@ _scp()
 
 	return 0
 }
-complete -F _scp $nospace scp
+complete -F _scp $nospace scp sshfs
 
 # ssh-copy-id(1) completion
 #

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]






More information about the Bash-completion-devel mailing list