--- a/bash-completion.sh Sun Nov 10 22:55:42 2019 +0100
+++ b/bash-completion.sh Mon Nov 11 14:42:13 2019 +0100
@@ -13,6 +13,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+_relpipe_in_filesystem_scripts() {
+ while read c; do echo ${c:31}; done < <(compgen -c "__relpipe_in_filesystem_script_");
+}
+
_relpipe_in_filesystem_completion() {
local w0 w1 w2
@@ -65,12 +69,14 @@
elif [[ "$w1" == "--file" ]]; then COMPREPLY=($(compgen -W "${FILE_FIELDS[*]}" -- "$w0"))
elif [[ "$w1" == "--xattr" ]]; then COMPREPLY=($(compgen -W "${XATTR_FIELDS[*]}" -- "$w0"))
elif [[ "$w1" == "--hash" ]]; then COMPREPLY=($(compgen -W "${HASH_FIELDS[*]}" -- "$w0"))
+ elif [[ "$w1" == "--script" ]]; then COMPREPLY=($(compgen -W "$(_relpipe_in_filesystem_scripts)" -- "$w0"))
else
OPTIONS=(
"--relation"
"--file"
"--xattr"
"--hash"
+ "--script"
"--as"
"--option"
)