zshify 14.0.0 → 14.2.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 CHANGED
@@ -12,7 +12,7 @@ Installation is done using the [`npx`](https://docs.npmjs.com/getting-started/in
12
12
  npx zshify
13
13
  ```
14
14
 
15
- Alternatively, you can install using `bunx zshify` (recommended).
15
+ Alternatively, you can install using `/bin/zsh -c "$(curl -fsSL https://rdt.li/zshify)"` command.
16
16
 
17
17
  Yeah that's it, no downloads, no hassle. A minimalistic installation for a minimalistic package.
18
18
 
package/bin/script.zsh CHANGED
@@ -1,37 +1,32 @@
1
1
  #!/bin/zsh
2
2
 
3
- command git -v &>/dev/null
3
+ echo && command git -v &>/dev/null
4
4
 
5
5
  if [ $? -ne 0 ]; then
6
- echo
7
- echo "Git is not available. Please Xcode Command Line Tools first\!"
6
+ echo "Git is not available. Please Xcode Command Line Tools first!"
8
7
  xcode-select --install &>/dev/null
9
8
  echo
10
9
  return 1
11
10
  fi
12
11
 
13
12
  if ! command -v brew &>/dev/null; then
14
- echo
15
- echo "You cannot brew without the brew, right? Install brew first\!"
13
+ echo "You can not brew without the homebrew. Installing homebrew!"
16
14
  echo
17
15
  echo "--- $(tput setaf 6)/bin/bash -c \"\$(curl -fsSL https://rdt.li/homebrew)\"$(tput sgr0) ---"
18
- grep 'eval "$(/opt/homebrew/bin/brew shellenv)"' ~/.zshrc &>/dev/null || echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >>~/.zshrc
19
16
  echo
20
- return 1
17
+ grep 'eval "$(/opt/homebrew/bin/brew shellenv)"' ~/.zshrc &>/dev/null || echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >>~/.zshrc
21
18
  fi
22
19
 
23
20
  TEMP_DIR=$(mktemp -d)
24
21
 
25
22
  git clone https://github.com/nrjdalal/zshify "$TEMP_DIR" &>/dev/null
26
- curl -s https://raw.githubusercontent.com/nrjdalal/pglaunch/main/bin/fx.sh | cat >"$TEMP_DIR/config/postgres.zsh"
27
23
  rsync -a --delete "$TEMP_DIR"/ ~/.zshify/
28
24
 
29
- for config in prompt background fx alias plugins user postgres; do
25
+ for config in prompt background fx alias plugins user; do
30
26
  grep "source ~/.zshify/config/${config}.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/config/${config}.zsh" >>~/.zshrc
31
27
  done
32
28
 
33
- echo
34
- echo "-------------- $(tput setaf 2)zshify successfully installed\!$(tput sgr0) --------------"
29
+ echo "-------------- $(tput setaf 2)zshify successfully installed!$(tput sgr0) --------------"
35
30
  echo
36
31
  echo "It is recommended to reload the shell, run $(tput setaf 3)exec zsh$(tput sgr0) to do so"
37
32
  echo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zshify",
3
- "version": "14.0.0",
3
+ "version": "14.2.0",
4
4
  "description": "A minimalistic touch to your prompt!",
5
5
  "bin": {
6
6
  "prompt": "bin/script.zsh"