Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1050739
bash_completion.sh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jul 3, 1:21 PM
Size
729 B
Mime Type
text/plain
Expires
Sat, Jul 5, 1:21 PM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
678935
Attached To
rINP In-Portal
bash_completion.sh
View Options
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
Log In to Comment