Skip to content

Commit 8bf31ca

Browse files
authored
Merge pull request jessarcher#4 from sifex/patch-1
Added Function prefixes to function definitions
2 parents 8d85b18 + dd8f8e9 commit 8bf31ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

artisan.plugin.zsh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Laravel's artisan command from anywhere within the project. It also
77
# adds shell completions that work anywhere artisan can be located.
88

9-
artisan() {
9+
function artisan() {
1010
_artisan=`_artisan_find`
1111

1212
if [ "$_artisan" = "" ]; then
@@ -35,7 +35,7 @@ artisan() {
3535

3636
compdef _artisan_add_completion artisan
3737

38-
_artisan_find() {
38+
function _artisan_find() {
3939
# Look for artisan up the file tree until the root directory
4040
dir=.
4141
until [ $dir -ef / ]; do
@@ -50,12 +50,12 @@ _artisan_find() {
5050
return 1
5151
}
5252

53-
_artisan_add_completion() {
53+
function _artisan_add_completion() {
5454
if [ "`_artisan_find`" != "" ]; then
5555
compadd `_artisan_get_command_list`
5656
fi
5757
}
5858

59-
_artisan_get_command_list() {
59+
function _artisan_get_command_list() {
6060
artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"
6161
}

0 commit comments

Comments
 (0)