Create zsh plugin

pull/4/head
NICHOLAS85 4 years ago
parent 6f820d3e88
commit 4c7897ee38

@ -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