File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
- [ ] Add/Remove/Update a helper script or ` git ` alias
12
12
- [ ] Add/Remove/Update link to an external resource like a blog post or video
13
+ - [ ] Plugin file updates - functions added here probably should be standalone scripts in ` /bin `
13
14
- [ ] Text cleanups/updates
14
15
- [ ] Test updates
15
16
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- # Add our plugin's bin diretory to user's path
16
- path+=(" ${0: h} /bin" )
15
+ # Add our plugin's bin diretory to user's path per
16
+ # https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#zero-handling
17
+
18
+ 0=" ${ZERO:- ${${0:# $ZSH_ARGZERO } :- ${(% ):-% N} } } "
19
+ 0=" ${${(M)0:#/* } :- $PWD / $0 } "
20
+
21
+ local git_extra_commands_bin=" ${0: h} /bin"
22
+
23
+ if [[ -z " ${path[(r)${git_extra_commands_bin}]} " ]]; then
24
+ path+=( " ${git_extra_commands_bin} " )
25
+ fi
17
26
18
27
alias git-grab=' git-incoming-commits'
19
28
alias gitroot=' cd $(git rev-parse --show-toplevel) && echo "$_"'
You can’t perform that action at this time.
0 commit comments