Files
FOSSBilling/puphpet/puppet/modules/git/files/subtree/bash_completion.sh
T
Vaidas Lungis 88512e863b add vagrant puphpet configuration
OS - Ubuntu 12.04
PHP - 5.4 with cli intl mcrypt curl gd imagick mbstring MySQL
IP - 10.20.30.12
target folder - /var/www/boxbilling
servername - boxbilling.test
XDEBUG
2014-12-11 12:42:50 +02:00

26 lines
711 B
Bash

#!bash
#
# bash completion support for Git subtree.
#
# To use this routine:
#
# 1) Make sure you have installed and configured the core Git completion script, which is required to make this script work;
# 2) Copy this file to somewhere (e.g. ~/.git-subtree-completion.sh);
# 3) Added the following line to your .bashrc:
# source ~/.git-subtree-completion.sh
#
_git_subtree ()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
if [ $COMP_CWORD -eq 2 ]; then
__gitcomp "add merge pull push split"
return
elif [ $COMP_CWORD -eq 3 ]; then
__gitcomp "--prefix="
return
fi
__gitcomp "$(__git_remotes)"
}