mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
bug(asdf): remove existing shim path entries while prepending to path
This commit is contained in:
parent
558ff1399d
commit
a55ec58e76
1 changed files with 2 additions and 2 deletions
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
export ASDF_DATA_DIR="${ASDF_DATA_DIR:-$HOME/.asdf}"
|
||||
|
||||
# Only add to the path if not already present
|
||||
(($path[(Ie)$ASDF_DATA_DIR/shims])) || path=("$ASDF_DATA_DIR/shims" $path)
|
||||
# Add shims to the front of the path, removing if already present.
|
||||
path=("$ASDF_DATA_DIR/shims" ${path:#$ASDF_DATA_DIR/shims})
|
||||
|
||||
# If the completion file doesn't exist yet, we need to autoload it and
|
||||
# bind it to `asdf`. Otherwise, compinit will have already done that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue