We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
/bin
$PATH
1 parent 15c7583 commit 0b9bfffCopy full SHA for 0b9bfff
git-extra-commands.plugin.zsh
@@ -12,8 +12,17 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
-# Add our plugin's bin diretory to user's path
16
-path+=("${0:h}/bin")
+# Add our plugin's bin diretory to user's path per
+# 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
26
27
alias git-grab='git-incoming-commits'
28
alias gitroot='cd $(git rev-parse --show-toplevel) && echo "$_"'
0 commit comments