This commit is contained in:
Cheng Liu 2024-03-28 14:15:49 -07:00
parent 693b51b2b0
commit 0dcb97d9d9
No known key found for this signature in database
GPG key ID: EEC8452F7DB85CD6
2 changed files with 9 additions and 3 deletions

View file

@ -10,13 +10,19 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/tiktok/sparo/main/zsh-plug
To use it, add `sparo` to the plugins array in your zshrc file:
**~/.zshrc**
```shell
plugins=(... sparo)
```
Or, manually load it by appending the following code to your zshrc file:
**~/.zshrc**
```shell
source $ZSH/custom/plugins/sparo/sparo.plugin.zsh
```
## Aliases

View file

@ -2,9 +2,9 @@
BRANCH=${1:-main}
# check existence of $ZSH/custom
if [ ! -d "$ZSH/custom/" ]; then
echo "$ZSH/custom/ does not exist."
# check ZSH environment
if [ -z "$ZSH" ]; then
echo "ZSH environment variable does not defined."
exit 1
fi