Skip to content

Commit

Permalink
[CONTRUBITING] Add section on using a secondary devel directory
Browse files Browse the repository at this point in the history
Add a section on how to use a separate directory than your normal
ZDOTDIR for development with its own zprezto.
  • Loading branch information
samcv authored and belak committed Jun 26, 2017
1 parent a4ff6ac commit eb47b45
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CONTRIBUTING.md
Expand Up @@ -33,6 +33,28 @@ there are a number of additional things to keep in mind.
- Use the `my_func()` syntax for defining functions.
- The 80 character hard limit can be waved for readability.

#### Using an Alternative zprezto Directory

To work on zprezto without messing with your current configuration:

```sh
mkdir devel-zprezto
cd devel-zprezto
git clone --recursive https://github.com/sorin-ionescu/prezto.git .zprezto
ZDOTDIR=$(pwd)
echo "Your development ZDOTDIR is $ZDOTDIR"
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
```

Then to start zsh in this development environment you will run:

```sh
ZDOTDIR=/path/to/devel-zprezto zsh
```

#### Modules

- A *README.md* must be present.
Expand Down

0 comments on commit eb47b45

Please sign in to comment.