zshify 1.0.79 → 1.0.82
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/bin/script.zsh +3 -9
- package/package.json +1 -1
package/bin/script.zsh
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
#!/bin/zsh
|
|
2
2
|
mkdir -p ~/.zshify
|
|
3
3
|
curl -s https://raw.githubusercontent.com/nrjdalal/zshify/master/config/prompt.zsh | cat >~/.zshify/prompt.zsh
|
|
4
|
-
grep "source ~/.zshify/prompt.zsh" ~/.zshrc || echo "source ~/.zshify/prompt.zsh" >>~/.zshrc
|
|
4
|
+
grep "source ~/.zshify/prompt.zsh" ~/.zshrc &>/dev/null || echo "source ~/.zshify/prompt.zsh" >>~/.zshrc
|
|
5
5
|
|
|
6
|
-
echo "\n$(tput setaf
|
|
7
|
-
|
|
8
|
-
which brew &>/dev/null && /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
6
|
+
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)"\"
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
# brew install gh git rsync zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting
|
|
12
|
-
# elif [[ "$(uname)" == "Linux" ]]; then
|
|
13
|
-
# brew install gh git rsync zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting
|
|
14
|
-
# fi
|
|
8
|
+
echo "\n$(tput setaf 2)zshify enabled, to reload, run -$(tput sgr0) exec zsh"
|