completion for ondemand

This commit is contained in:
2021-06-25 13:21:24 +01:00
parent 687999be1a
commit 3d0c46888d

29
config/.profile.completion Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
#
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
#
# GIT
#
[ -f $MYSCRIPTS/bash/git-completion.bash ] && source $MYSCRIPTSE/bash/git-completion.bash
[ -f /opt/facebook/share/bash_completion ] && source /opt/facebook/share/bash_completion
#
# Ondemand
#
complete -W "connect ineractive list release smartlog whoami help" ondemand
complete -W "connect ineractive list release smartlog whoami help" dev
complete -W "dev hrat lusntag --help" ssh