-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: make it more obvious the image is a video link * feat: update README (#150) * feat: update README * fix: update README with the new video thumbnail * fix: update README with updated uninstall text * fix: unshallow clone for plugin checkout (#153) * fix: unshallow clone for plugin checkout fixes #151 * refactor: address PR comments --------- Co-authored-by: Matthew Winter <[email protected]> Co-authored-by: Christian Chiarulli <[email protected]> Co-authored-by: António Peixe <[email protected]>
- Loading branch information
1 parent
825c739
commit a834b5c
Showing
2 changed files
with
18 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,20 +83,15 @@ plug "$HOME/.config/zsh/aliases.zsh" | |
plug "$HOME/.config/zsh/exports.zsh" | ||
``` | ||
|
||
By default `Zap` when installing a plugin will clone a GitHub repository using a HTTPS web URL, if you require to be able to install from a private GitHub or from a different git server (for example GitLab) you can provide a different URL prefix to be used. For example, using a password-protected SSH key: | ||
By default `Zap` when installing a plugin will clone a GitHub repository using a HTTPS web URL, if you require to be able to install from a private GitHub or from a different git server (for example GitLab) you can provide a different URL prefix to be used. For example: | ||
|
||
```zsh | ||
# Your ZSHRC file | ||
... | ||
|
||
# Example globally set Zap to git clone using an SSH key | ||
export ZAP_GIT_PREFIX='[email protected]:' | ||
# Example globally seting the prefix for Zap to git clone using an SSH key | ||
export ZAP_GIT_PREFIX="[email protected]:" | ||
plug "zap-zsh/private-repo" | ||
|
||
# Example git clone using GitLab for a single plugin | ||
ZAP_GIT_PREFIX='https://gitlab.com/' plug "user/repo" | ||
|
||
... | ||
ZAP_GIT_PREFIX="https://gitlab.com/" plug "user/repo" | ||
``` | ||
|
||
It is possible to call `plug` in any interactive shell session to source a file or to download and source a plugin for that particular session. | ||
|
@@ -127,8 +122,16 @@ Zap provided commands for updating and cleaning up plugins | |
|
||
## Uninstall | ||
|
||
To uninstall Zap, when currently active, execute the following: | ||
|
||
```zsh | ||
rm -rf "$ZAP_DIR" | ||
``` | ||
|
||
When not currently active, execute the following: | ||
|
||
```zsh | ||
rm -rf ~/.local/share/zap | ||
rm -rf "${XDG_DATA_HOME:-$HOME/.local/share}/zap" | ||
``` | ||
|
||
## Notes | ||
|
@@ -137,7 +140,7 @@ For sourcing local files use `$HOME` instead of `~` when giving a full path to t | |
|
||
--- | ||
|
||
[![zap thumbnail](https://user-images.githubusercontent.com/29136904/237558142-b6201b3f-bf85-4866-95f3-df275cc94759.png)](https://www.youtube.com/watch?v=LhDMw6n3GI4) | ||
[![zap thumbnail](https://user-images.githubusercontent.com/29136904/238183118-943e3f25-5198-45a5-a22e-45a3a27db11d.png)](https://www.youtube.com/watch?v=LhDMw6n3GI4) | ||
|
||
<!-----------------------------------------------------------------------------> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters