zshify 5.0.0 → 5.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.
Files changed (2) hide show
  1. package/bin/script.zsh +2 -5
  2. package/package.json +1 -1
package/bin/script.zsh CHANGED
@@ -4,9 +4,6 @@ mkdir -p ~/.zshify
4
4
  curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/prompt.zsh | cat >~/.zshify/prompt.zsh
5
5
  grep "source ~/.zshify/prompt.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/prompt.zsh" >>~/.zshrc
6
6
 
7
- curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/alias.zsh | cat >~/.zshify/alias.zsh
8
- grep "source ~/.zshify/fx.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/alias.zsh" >>~/.zshrc
9
-
10
7
  curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/fx.zsh | cat >~/.zshify/fx.zsh
11
8
  grep "source ~/.zshify/fx.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/fx.zsh" >>~/.zshrc
12
9
 
@@ -22,5 +19,5 @@ echo "\n$(tput setaf 2)zshify enabled! to reload, run -$(tput sgr0) exec zsh"
22
19
 
23
20
  # cleanup
24
21
 
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
22
+ [ -f ~/.zshrc ] && grep -vxFf ~/.zshify/user.zsh ~/.zshrc >~/.zshrc.tmp && mv ~/.zshrc.tmp ~/.zshrc
23
+ [ -f ~/.zprofile ] && grep -vxFf ~/.zshify/user.zsh ~/.zprofile >~/.zprofile.tmp && mv ~/.zprofile.tmp ~/.zprofile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zshify",
3
- "version": "5.0.0",
3
+ "version": "5.2.0",
4
4
  "description": "A minimalistic touch to your prompt!",
5
5
  "bin": {
6
6
  "prompt": "bin/script.zsh"