|
3 | 3 | - [Introduction](#introduction) |
4 | 4 | - [Installation & Setup](#installation) |
5 | 5 | - [Installing Sail Into Existing Applications](#installing-sail-into-existing-applications) |
6 | | - - [Configuring A Bash Alias](#configuring-a-bash-alias) |
| 6 | + - [Configuring A Shell Alias](#configuring-a-shell-alias) |
7 | 7 | - [Starting & Stopping Sail](#starting-and-stopping-sail) |
8 | 8 | - [Executing Commands](#executing-sail-commands) |
9 | 9 | - [Executing PHP Commands](#executing-php-commands) |
@@ -71,22 +71,24 @@ If you would like to develop within a [Devcontainer](https://code.visualstudio.c |
71 | 71 | php artisan sail:install --devcontainer |
72 | 72 | ``` |
73 | 73 |
|
74 | | -<a name="configuring-a-bash-alias"></a> |
75 | | -### Configuring A Bash Alias |
| 74 | +<a name="configuring-a-shell-alias"></a> |
| 75 | +### Configuring A Shell Alias |
76 | 76 |
|
77 | 77 | By default, Sail commands are invoked using the `vendor/bin/sail` script that is included with all new Laravel applications: |
78 | 78 |
|
79 | 79 | ```shell |
80 | 80 | ./vendor/bin/sail up |
81 | 81 | ``` |
82 | 82 |
|
83 | | -However, instead of repeatedly typing `vendor/bin/sail` to execute Sail commands, you may wish to configure a Bash alias that allows you to execute Sail's commands more easily: |
| 83 | +However, instead of repeatedly typing `vendor/bin/sail` to execute Sail commands, you may wish to configure a shell alias that allows you to execute Sail's commands more easily: |
84 | 84 |
|
85 | 85 | ```shell |
86 | | -alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail' |
| 86 | +alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail' |
87 | 87 | ``` |
88 | 88 |
|
89 | | -Once the Bash alias has been configured, you may execute Sail commands by simply typing `sail`. The remainder of this documentation's examples will assume that you have configured this alias: |
| 89 | +To make sure this is always available, you may add this to your shell configuration file in your home directory, such as `~/.zshrc` or `~/.bashrc`, and then restart your shell. |
| 90 | + |
| 91 | +Once the shell alias has been configured, you may execute Sail commands by simply typing `sail`. The remainder of this documentation's examples will assume that you have configured this alias: |
90 | 92 |
|
91 | 93 | ```shell |
92 | 94 | sail up |
|
0 commit comments