diff options
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_darcs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_darcs b/Completion/Unix/Command/_darcs new file mode 100644 index 000000000..d5856fe32 --- /dev/null +++ b/Completion/Unix/Command/_darcs @@ -0,0 +1,14 @@ +#compdef darcs + +_darcs() { + # 1 based array + if (($CURRENT == 2)); then + compadd -- $( darcs --commands | grep "^$PREFIX" ) + return 0 + fi + + compadd -- $( darcs ${words[2]} --list-option | grep "^$PREFIX" ) + return 0 +} + +_darcs "$@" |