mirror of
https://gitlab.com/linuxstuff/dotfiles.git
synced 2026-11-11 23:25:11 +01:00
Added class and os alternates
This commit is contained in:
1 parent
5a5286b38c
commit
80a58d4669
793 files changed
+63028
-295
No files matched your search
Executable
+9
@@ -0,0 +1,9 @@
|
||||
# Symfony
|
||||
|
||||
This plugin provides completion for [Symfony](https://symfony.com/).
|
||||
|
||||
To use it add symfony to the plugins array in your zshrc file.
|
||||
|
||||
```bash
|
||||
plugins=(... symfony)
|
||||
```
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
# symfony basic command completion
|
||||
|
||||
_symfony_get_command_list () {
|
||||
php symfony | sed "1,/Available tasks/d" | awk 'BEGIN { cat=null; } /^[A-Za-z]+$/ { cat = $1; } /^ :[a-z]+/ { print cat $1; }'
|
||||
}
|
||||
|
||||
_symfony () {
|
||||
if [ -f symfony ]; then
|
||||
compadd `_symfony_get_command_list`
|
||||
fi
|
||||
}
|
||||
|
||||
compdef _symfony symfony
|
||||
Reference in new issue
Block a user