Skip to content

Commit a82458d

Browse files
committed
Refactor README.MD to update installation instructions and remove unnecessary code
1 parent ac2b95a commit a82458d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.MD

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[![PHP Version Manager (phpvm)](./assets/Banner.jpg)](https://github.com/Thavarshan/phpvm)
22

3+
# PHP Version Manager (phpvm)
4+
35
[![Version](https://img.shields.io/badge/version-v0.0.1-yellow.svg)](https://github.com/Thavarshan/phpvm/releases)
46
[![Tests](https://github.com/Thavarshan/phpvm/actions/workflows/test.yml/badge.svg?label=test&branch=main)](https://github.com/Thavarshan/phpvm/actions/workflows/test.yml)
57
[![Build](https://github.com/Thavarshan/phpvm/actions/workflows/use.yml/badge.svg?label=build&branch=main)](https://github.com/Thavarshan/phpvm/actions/workflows/use.yml)
@@ -81,7 +83,7 @@ This script clones the `phpvm` repository into `~/.phpvm` and attempts to add th
8183

8284
```sh
8385
export PHPVM_DIR="$HOME/.phpvm"
84-
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
86+
export PATH="$HOME/.local/bin:$PATH"
8587
```
8688

8789
### Verify Installation
@@ -106,7 +108,7 @@ Then add the following lines to your shell's profile (`~/.bashrc`, `~/.zshrc`, e
106108

107109
```sh
108110
export PHPVM_DIR="$HOME/.phpvm"
109-
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
111+
export PATH="$HOME/.local/bin:$PATH"
110112
```
111113

112114
### Manual Update
@@ -117,7 +119,6 @@ To manually update `phpvm` to the latest version, use the following commands:
117119
cd ~/.phpvm
118120
git fetch --tags origin
119121
git checkout `git describe --abbrev=0 --tags`
120-
source ~/.phpvm/index.js
121122
```
122123

123124
## Usage
@@ -233,7 +234,7 @@ And remove the following lines from your shell's profile:
233234

234235
```sh
235236
export PHPVM_DIR="$HOME/.phpvm"
236-
[[ -s "$PHPVM_DIR/index.js" ]] && export PATH="$PHPVM_DIR/bin:$PATH" && node "$PHPVM_DIR/index.js"
237+
export PATH="$HOME/.local/bin:$PATH"
237238
```
238239

239240
## Troubleshooting

0 commit comments

Comments
 (0)