Skip to content
Snippets Groups Projects
Commit b0475437 authored by nimrod's avatar nimrod
Browse files

Even more Git functions completions.

parent 44fe4621
No related branches found
No related tags found
No related merge requests found
# vim: ft=bash
_git_bump () {
local cur prev words cword opts
_init_completion || return
COMPREPLY=($(compgen -W 'major minor patch' -- "$cur"))
}
_git_license () {
local cur prev words cword opts
_init_completion || return
licenses="$(license -list | awk '{print $1}')"
COMPREPLY=($(compgen -W "$licenses" -- "$cur"))
}
_git_namespace_backup () {
local cur prev words cword opts
_init_completion || return
pushd "$HOME/Repositories" >/dev/null
COMPREPLY=($(compgen -o dirnames -d -- "$cur"))
popd >/dev/null
}
_git_skel () {
local cur prev words cword opts
_init_completion || return
pushd "$HOME/.config/git/skel" >/dev/null
COMPREPLY=($(compgen -o filenames -f -- "$cur"))
popd >/dev/null
}
# vim: ft=bash
_git_skel () {
local cur prev words cword opts
_init_completion || return
pushd "$HOME/.config/git/skel" >/dev/null
COMPREPLY=($(compgen -o filenames -f -- "$cur"))
popd >/dev/null
}
if [ -f /usr/share/bash-completion/completions/git ]
then
. /usr/share/bash-completion/completions/git
__git_complete git-skel _git_skel
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment