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:
|
To use it, add `sparo` to the plugins array in your zshrc file:
|
||||||
|
|
||||||
|
**~/.zshrc**
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
plugins=(... sparo)
|
plugins=(... sparo)
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, manually load it by appending the following code to your zshrc file:
|
Or, manually load it by appending the following code to your zshrc file:
|
||||||
|
|
||||||
|
**~/.zshrc**
|
||||||
|
|
||||||
|
```shell
|
||||||
source $ZSH/custom/plugins/sparo/sparo.plugin.zsh
|
source $ZSH/custom/plugins/sparo/sparo.plugin.zsh
|
||||||
|
```
|
||||||
|
|
||||||
## Aliases
|
## Aliases
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
BRANCH=${1:-main}
|
BRANCH=${1:-main}
|
||||||
|
|
||||||
# check existence of $ZSH/custom
|
# check ZSH environment
|
||||||
if [ ! -d "$ZSH/custom/" ]; then
|
if [ -z "$ZSH" ]; then
|
||||||
echo "$ZSH/custom/ does not exist."
|
echo "ZSH environment variable does not defined."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue