Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F9583749
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
796 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/resources/shell/bash-completion b/resources/shell/bash-completion
index c87230d8..e431064f 100644
--- a/resources/shell/bash-completion
+++ b/resources/shell/bash-completion
@@ -1,24 +1,22 @@
-_arc()
+_arc ()
{
-
CUR="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=()
- OPTS=$(arc shell-complete --current ${COMP_CWORD} -- ${COMP_WORDS[@]})
-
+ OPTS=$(echo | arc shell-complete --current ${COMP_CWORD} -- ${COMP_WORDS[@]})
+
if [ $? -ne 0 ]; then
return $?
fi
-
+
if [ "$OPTS" = "FILE" ]; then
COMPREPLY=( $(compgen -f -- ${CUR}) )
return 0
fi
-
+
if [ "$OPTS" = "ARGUMENT" ]; then
return 0
fi
-
- COMPREPLY=( $(compgen -W "${OPTS}" -- ${CUR}) )
+ COMPREPLY=( $(compgen -W "${OPTS}" -- ${CUR}) )
}
complete -F _arc -o filenames arc
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Oct 11, 10:38 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
984228
Default Alt Text
(796 B)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment