Skip to content

Commit

Permalink
Use export -U to deduplicate $PATH
Browse files Browse the repository at this point in the history
In f7c73f7 we started to deduplicate
`$PATH` using `typeset -U`, but that did not prevent duplicate `$PATH`
entries when processes were launched that inherited the environment from
an existing shell.

Using `export -U` keeps the `$PATH` deduplicated even when tmux launches
a new shell.

Fix thoughtbot#443.
  • Loading branch information
geoffharcourt committed Nov 13, 2015
1 parent f7c73f7 commit f074afe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions zsh/configs/post/path.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ fi
# mkdir .git/safe in the root of repositories you trust
PATH=".git/safe/../../bin:$PATH"

typeset -U PATH

export PATH
export -U PATH

0 comments on commit f074afe

Please sign in to comment.