X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=bash_completion;h=88b37dc28fb0dc175f48ac9fa364f26a434bedde;hp=51bbc68e0d6b39dded6889d69d6da8078c930634;hb=089fb2fb2d9e2a3473aa6fac91681ca8ddfffff3;hpb=ef1f130a1f9ac61a51da10ee56c5bd9ef1b52366 diff --git a/bash_completion b/bash_completion index 51bbc68e..88b37dc2 100644 --- a/bash_completion +++ b/bash_completion @@ -1,7 +1,4 @@ -# Copyright (C) 2007-2011 Andre Noll -# -# Licensed under the GPL v2. For licencing details see COPYING. - +# Copyright (C) 2007 Andre Noll , see file COPYING. _para_complete() { local prg="$1" # the program to execute @@ -9,10 +6,6 @@ _para_complete() local line="$COMP_LINE" OLD_IFS="$IFS" local opts n - if [[ "$COMP_WORDBREAKS" != ' ' ]]; then - COMP_WORDBREAKS=' ' - return 124 # try again with proper value - fi # This extracts short and long options from the help output local script='{ if ($1 ~ "-[a-zA-Z]," && $2 ~ "--[a-zA-Z]") { @@ -89,13 +82,13 @@ _para_complete() _para_audioc() { - _para_complete ~maan/para/para_audioc + _para_complete para_audioc } complete -F _para_audioc para_audioc _para_client() { - _para_complete ~maan/para/para_client + _para_complete para_client } complete -o default -o nospace -F _para_client para_client complete -o default -o nospace -F _para_client para