easy-command 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/README_CN.md +3 -2
- package/install.sh +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ Or install globally and configure your terminal in one command:
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
npx easy-command -y --global
|
|
24
|
+
exec zsh -l
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
### GitHub
|
|
@@ -130,13 +131,13 @@ bash install.sh -y
|
|
|
130
131
|
For production, pin a release tag instead of running `main` directly:
|
|
131
132
|
|
|
132
133
|
```bash
|
|
133
|
-
npx easy-command@2.0.
|
|
134
|
+
npx easy-command@2.0.5 -y
|
|
134
135
|
```
|
|
135
136
|
|
|
136
137
|
Or, without npm:
|
|
137
138
|
|
|
138
139
|
```bash
|
|
139
|
-
curl -fsSL https://raw.githubusercontent.com/UnionSchool/easy-command/v2.0.
|
|
140
|
+
curl -fsSL https://raw.githubusercontent.com/UnionSchool/easy-command/v2.0.5/install.sh | bash -s -- -y
|
|
140
141
|
```
|
|
141
142
|
|
|
142
143
|
## License
|
package/README_CN.md
CHANGED
|
@@ -21,6 +21,7 @@ easy-command -y
|
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
npx easy-command -y --global
|
|
24
|
+
exec zsh -l
|
|
24
25
|
```
|
|
25
26
|
|
|
26
27
|
### GitHub 安装
|
|
@@ -130,13 +131,13 @@ bash install.sh -y
|
|
|
130
131
|
生产环境建议固定到发布标签,而不是直接使用 `main`:
|
|
131
132
|
|
|
132
133
|
```bash
|
|
133
|
-
npx easy-command@2.0.
|
|
134
|
+
npx easy-command@2.0.5 -y
|
|
134
135
|
```
|
|
135
136
|
|
|
136
137
|
或者不使用 npm:
|
|
137
138
|
|
|
138
139
|
```bash
|
|
139
|
-
curl -fsSL https://raw.githubusercontent.com/UnionSchool/easy-command/v2.0.
|
|
140
|
+
curl -fsSL https://raw.githubusercontent.com/UnionSchool/easy-command/v2.0.5/install.sh | bash -s -- -y
|
|
140
141
|
```
|
|
141
142
|
|
|
142
143
|
## 许可
|
package/install.sh
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
set -Eeuo pipefail
|
|
4
4
|
|
|
5
|
-
readonly VERSION='2.0.
|
|
5
|
+
readonly VERSION='2.0.5'
|
|
6
6
|
readonly BEGIN_MARKER='# >>> easy-command zsh >>>'
|
|
7
7
|
readonly END_MARKER='# <<< easy-command zsh <<<'
|
|
8
8
|
readonly BASE_DIR_NAME='.easy-command'
|
|
@@ -573,6 +573,9 @@ main() {
|
|
|
573
573
|
write_zshrc_block
|
|
574
574
|
configure_git_aliases
|
|
575
575
|
info "Installed easy-command $VERSION for $TARGET_USER. Reconnect or run: exec zsh -l"
|
|
576
|
+
if "$GLOBAL_INSTALL"; then
|
|
577
|
+
info "Global CLI installed. After exec zsh -l, try: ec --help"
|
|
578
|
+
fi
|
|
576
579
|
;;
|
|
577
580
|
repair)
|
|
578
581
|
CHANGE_LOGIN_SHELL=false
|