mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 11:25:09 -05:00
chore
This commit is contained in:
parent
693b51b2b0
commit
0dcb97d9d9
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue