Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/tools/bash_completion.sh
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | LF |
svn:executable | null | * |
function _in-portal_d41351fc9a70c756_complete { | |||||
local CMDLINE_CONTENTS="$COMP_LINE" | |||||
local CMDLINE_CURSOR_INDEX="$COMP_POINT" | |||||
local CMDLINE_WORDBREAKS="$COMP_WORDBREAKS"; | |||||
export CMDLINE_CONTENTS CMDLINE_CURSOR_INDEX CMDLINE_WORDBREAKS | |||||
local RESULT STATUS; | |||||
# this is custom line | |||||
RESULT=$(${1} _completion); # complete | |||||
STATUS=$?; | |||||
local cur; | |||||
_get_comp_words_by_ref -n : cur; | |||||
if [ $STATUS -eq 200 ]; then | |||||
_filedir; | |||||
return 0; | |||||
elif [ $STATUS -ne 0 ]; then | |||||
echo -e "$RESULT"; | |||||
return $?; | |||||
fi; | |||||
COMPREPLY=(`compgen -W "$RESULT" -- $cur`); | |||||
__ltrim_colon_completions "$cur"; | |||||
}; | |||||
complete -F _in-portal_d41351fc9a70c756_complete in-portal; |