From 87e4586efdf429fca5bcdcb547b2757ccd098aed Mon Sep 17 00:00:00 2001 From: ivan tkachenko Date: Sun, 4 Oct 2020 19:44:24 +0300 Subject: [PATCH] Replace dirname with zsh expansion modifier - [x] No leading whitespace - [x] No external command - [x] More cryptic --- git-open.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-open.plugin.zsh b/git-open.plugin.zsh index 49fbb9f..f3befcb 100644 --- a/git-open.plugin.zsh +++ b/git-open.plugin.zsh @@ -3,4 +3,4 @@ # Make git-open easy to install and keep up to date if you're using a # ZSH framework like Zgen or Antigen - export PATH=$(dirname $0):${PATH} +export PATH=${0:A:h}:${PATH}