mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Merge pull request #220 from junkblocker/patch-1
Prevent duplicates in chpwd_functions on re-source.
This commit is contained in:
commit
986f02124e
@ -29,7 +29,7 @@ function autojump_chpwd() {
|
|||||||
{ (autojump -a "$(pwd ${_PWD_ARGS})"&)>/dev/null 2>>|${AUTOJUMP_DATA_DIR}/autojump_errors ; } 2>/dev/null
|
{ (autojump -a "$(pwd ${_PWD_ARGS})"&)>/dev/null 2>>|${AUTOJUMP_DATA_DIR}/autojump_errors ; } 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
typeset -ga chpwd_functions
|
typeset -gaU chpwd_functions
|
||||||
chpwd_functions+=autojump_chpwd
|
chpwd_functions+=autojump_chpwd
|
||||||
|
|
||||||
function j {
|
function j {
|
||||||
|
Loading…
Reference in New Issue
Block a user