zshify 3.0.0 → 4.0.0
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 +1 -1
- package/bin/script.zsh +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Zshify is a minimalistic, one command installation to customize the prompt of yo
|
|
|
9
9
|
Installation is done using the [`npx`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally) command:
|
|
10
10
|
|
|
11
11
|
```zsh
|
|
12
|
-
|
|
12
|
+
bunx zshify
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Alternatively, you can install using `bunx`.
|
package/bin/script.zsh
CHANGED
|
@@ -13,9 +13,14 @@ grep "source ~/.zshify/fx.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/fx
|
|
|
13
13
|
curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/user.zsh | cat >~/.zshify/user.zsh
|
|
14
14
|
grep "source ~/.zshify/user.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/user.zsh" >>~/.zshrc
|
|
15
15
|
|
|
16
|
-
curl -s https://raw.githubusercontent.com/nrjdalal/
|
|
16
|
+
curl -s https://raw.githubusercontent.com/nrjdalal/pglaunch/main/bin/fx.sh | cat >~/.zshify/postgres.zsh
|
|
17
17
|
grep "source ~/.zshify/postgres.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/postgres.zsh" >>~/.zshrc
|
|
18
18
|
|
|
19
19
|
which brew &>/dev/null || echo "\n$(tput setaf 1)brew not installed! install via -$(tput sgr0)\n/bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"\"
|
|
20
20
|
|
|
21
21
|
echo "\n$(tput setaf 2)zshify enabled! to reload, run -$(tput sgr0) exec zsh"
|
|
22
|
+
|
|
23
|
+
# cleanup
|
|
24
|
+
|
|
25
|
+
grep -vxFf ~/.zshify/user.zsh ~/.zshrc >~/.zshrc.tmp && mv ~/.zshrc.tmp ~/.zshrc
|
|
26
|
+
grep -vxFf ~/.zshify/user.zsh ~/.zprofile >~/.zprofile.tmp && mv ~/.zprofile.tmp ~/.zprofile
|