File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6
6
# Laravel's artisan command from anywhere within the project. It also
7
7
# adds shell completions that work anywhere artisan can be located.
8
8
9
- artisan () {
9
+ function artisan() {
10
10
_artisan=` _artisan_find`
11
11
12
12
if [ " $_artisan " = " " ]; then
@@ -35,7 +35,7 @@ artisan() {
35
35
36
36
compdef _artisan_add_completion artisan
37
37
38
- _artisan_find () {
38
+ function _artisan_find() {
39
39
# Look for artisan up the file tree until the root directory
40
40
dir=.
41
41
until [ $dir -ef / ]; do
@@ -50,12 +50,12 @@ _artisan_find() {
50
50
return 1
51
51
}
52
52
53
- _artisan_add_completion () {
53
+ function _artisan_add_completion() {
54
54
if [ " ` _artisan_find` " != " " ]; then
55
55
compadd ` _artisan_get_command_list`
56
56
fi
57
57
}
58
58
59
- _artisan_get_command_list () {
59
+ function _artisan_get_command_list() {
60
60
artisan --raw --no-ansi list | sed " s/[[:space:]].*//g"
61
61
}
You can’t perform that action at this time.
0 commit comments