|
[Rivet-svn] r2792 - trunk/datablackhole at projects.hepforge.org blackhole at projects.hepforge.orgSun Nov 28 22:28:14 GMT 2010
Author: buckley Date: Sun Nov 28 22:28:14 2010 New Revision: 2792 Log: Adding workaround to completion when _filedir isn't defined Modified: trunk/data/rivet-completion Modified: trunk/data/rivet-completion ============================================================================== --- trunk/data/rivet-completion Sat Nov 27 16:08:52 2010 (r2791) +++ trunk/data/rivet-completion Sun Nov 28 22:28:14 2010 (r2792) @@ -1,10 +1,18 @@ ## -*- sh -*- ## Analysis name completion for rivet scripts +test _filedir || \ +function _filedir() { + local cur prev commands options command + cur="${COMP_WORDS[COMP_CWORD]}" + COMPREPLY=( $(compgen -W "$(ls ${cur}*)" -- ${cur}) ) + return 0 +} + + function _rivet() { local cur prev commands options command COMPREPLY=() - #cur=`_get_cword` cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
More information about the Rivet-svn mailing list |