vcs: Restructure vcs module

Just like writing and qutebrowser modules, restructured the version
control software module to make more use of dotter's ability to
precisely link files. All contained programs have a top-level directory
and all the files that correspond to that specific software lie beneath
in the directory tree.
This commit is contained in:
Marty Oehme 2024-09-18 17:38:44 +02:00
parent 0b6f0c235d
commit bcd93eb237
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
8 changed files with 9 additions and 3 deletions

View file

@ -0,0 +1,15 @@
#compdef _gitignore gitignore
#
# Requires gitignore script in path
#
# Enables completion for zsh of gitignore function.
_gitignore_get_command_list() {
curl -sL https://www.gitignore.io/api/list | tr ',' '\n'
}
_gitignore() {
_arguments \
'1::flags:((-f\:"Save output to .gitignore file in current directory"))' \
":listopts: _values -s, 'modules' $(_gitignore_get_command_list)"
}