-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make this loadable more easily by ZSH frameworks (#482)
Add repo's gitroot to `$PATH` so it can be loaded easily by ZSH frameworks. Signed-off-by: Joe Block <jpb@unixorn.net>
- Loading branch information
Showing
3 changed files
with
30 additions
and
11 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Add our plugin diretory to user's path | ||
# | ||
# See following web page for explanation of the line "ZERO=...": | ||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html | ||
|
||
0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}" | ||
0="${${(M)0:#/*}:-$PWD/$0}" | ||
local diff_so_fancy_bin="${0:h}" | ||
|
||
if [[ -z "${path[(r)${diff_so_fancy_bin}]}" ]]; then | ||
path+=( "${diff_so_fancy_bin}" ) | ||
fi |
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