Merge pull request #4 from NICHOLAS85/zsh-plugin

Create simple zsh plugin which can be loaded by most major plugin managers
pull/5/head
Kevin Zhuang 4 years ago committed by GitHub
commit 21dad0be4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,6 +51,8 @@ with minimal set up required.
- [Getting started](#getting-started)
- [Install](#install)
- [Manual](#manual)
- [Zsh Plugin](#zsh-plugin)
- [Dependencies](#dependencies)
- [Setup](#setup)
- [Migration](#migration)
@ -92,6 +94,8 @@ with minimal set up required.
### Install
#### Manual
1. Clone the repository (change ~/.dotbare to the location of your preference)
```sh
@ -112,6 +116,12 @@ with minimal set up required.
alias dotbare="$HOME/.dotbare/dotbare"
```
#### Zsh plugin
##### Zinit
add `zinit light kazhala/dotbare` to `~/.zshrc`.
### Dependencies
- Required dependency

@ -0,0 +1,7 @@
# Standardized $0 handling
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
local _path="${0:h}"
if [[ -z "${path[(r)$_path]}" ]]; then
path+=( "$_path" )
fi
Loading…
Cancel
Save