Page MenuHomeIn-Portal Phabricator

bash_completion.sh
No OneTemporary

File Metadata

Created
Thu, Jul 3, 1:21 PM

bash_completion.sh

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;

Event Timeline