Skip to content

Commit 5a5e525

Browse files
committed
Use better path manipulation
@nunico mentioned a better way to massage `$PATH`, use it instead. Signed-off-by: Joe Block <[email protected]>
1 parent a8b7093 commit 5a5e525

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

iterm2-shell-integration.plugin.zsh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Automagically add the utilities directory to $PATH
22

33
# Add utilities to our path
4-
PLUGIN_BIN="$(dirname $0)/utilities"
5-
export PATH=${PATH}:${PLUGIN_BIN}
4+
path+=("${0:h}/utilities")
65

76
# And source the helper functions, too.
87
source "${0:h}/shell_integration/zsh"

0 commit comments

Comments
 (0)