You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* ✨ make the command(init) support fish
* 💚 fix install script for fish
* 💚 add fish completions to the release zip file
* 📝 add how to install to README.md for fish user
@@ -38,8 +38,8 @@ You should also edit your shell configuration to remove any references to phpup.
38
38
### Requirements
39
39
40
40
- OS: Linux, macOS, Windows[WIP]
41
-
- shell: bash, zsh, fish[WIP], powershell[WIP]
42
-
-`curl`/`ps` installation
41
+
- shell: `bash`, `zsh`, `fish` or `powershell`[WIP]
42
+
-`curl`, `ps` and `make` installation
43
43
44
44
### Installation
45
45
@@ -56,11 +56,20 @@ cargo install phpup
56
56
57
57
### Shell setup
58
58
59
+
#### Bash, Zsh
60
+
59
61
Add the following to your `.bashrc` or `.zshrc`
60
62
61
-
```bash
63
+
```sh
62
64
eval"$(phpup init --auto --recursive)"
63
65
```
66
+
#### Fish
67
+
68
+
Create `~/.config/fish/conf.d/phpup.fish` and add the following to it
69
+
70
+
```fish
71
+
phpup init --auto --recursive | source
72
+
```
64
73
65
74
- To automatically run `phpup use` when a directory contains a `.php-version` file, add the `--auto` (long: `--auto-switch`) option.
66
75
- To search recursively for a `.php-version` file in a parent directory when running `phpup use` automatically, add the `--recursive` (long: `--recursive-version-file`) option.
0 commit comments