Also commit custom plugins (but do not pull on upstream)

This commit is contained in:
Gaetan Semet 2013-02-28 15:01:36 +01:00
commit 4ac576daf8
3 changed files with 29 additions and 4 deletions

4
.gitignore vendored
View file

@ -1,9 +1,5 @@
locals.zsh
log/.zsh_history
projects.zsh
custom/*
!custom/example
!custom/example.zsh
*.swp
!custom/example.zshcache
cache/

View file

@ -0,0 +1,28 @@
#compdef -P (|./)launch_trial.sh
__launch_trial_list_tests()
{
tests=($(./launch_trial.sh --list-tests))
_describe -t tests 'Select test to run' tests
}
_launch_trial()
{
typeset -A opt_args
local context state line curcontext="$curcontext"
local ret=1
_arguments -C : \
'(- 1 *)--help[show usage]'\
'(- 1 *)--htmlcov[generate html coverage report in htmlcov surbdirectory]'\
'(- 1 *)--list-tests[list all tests]'\
':projects:__launch_trial_list_tests' \
&& ret=0
return $ret
}
_launch_trial "$@"
return $?

View file

@ -0,0 +1 @@
# Aliases