Profile split to multiple files.

This commit is contained in:
2023-01-05 14:43:07 +00:00
parent 8b2dd20a64
commit b2b8666da1
3 changed files with 312 additions and 189 deletions

40
.profile.roku.svin Normal file
View File

@@ -0,0 +1,40 @@
#!/bin/sh
###############################################################################
#
# Build
#
# This is needed to be able to set brake point on /bin/Application
export PAX_DEBUG=on
__svin_completion_contains()
{
# Platforms
for WORD in "$@"; do
if [[ "${COMP_WORDS[*]}" =~ "$WORD" ]]; then
return 1
fi
done
return 0
}
__svin_completion_add_if()
{
__svin_completion_contains "$@"
if [[ $? == 0 ]]; then
CANDIDATES+=" $@"
fi
}
complete -o nospace -o bashdefault -o default -F svin_completion svin
svin_completion()
{
local CANDIDATES="--help fetch init version worktree"
# Docker
# completion_add_if docker make
COMPREPLY=($(compgen -W "$CANDIDATES" "${COMP_WORDS[${COMP_CWORD}]}"))
}