mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
Revert "remove _j() as it was never used to begin with."
This reverts commit 49a0d702ba.
Conflicts:
bin/autojump
Closes #178, #181.
This commit is contained in:
6
bin/_j
Normal file
6
bin/_j
Normal file
@@ -0,0 +1,6 @@
|
||||
#compdef j
|
||||
cur=${words[2, -1]}
|
||||
|
||||
autojump --complete ${=cur[*]} | while read i; do
|
||||
compadd -U "$i";
|
||||
done
|
||||
@@ -37,6 +37,7 @@ chpwd_functions+=autojump_chpwd
|
||||
|
||||
function j {
|
||||
# Cannot use =~ due to MacPorts zsh v4.2, see issue #125.
|
||||
echo "j()"
|
||||
if [[ ${@} == -* ]]; then
|
||||
autojump ${@}
|
||||
return
|
||||
@@ -54,6 +55,7 @@ function j {
|
||||
}
|
||||
|
||||
function jc {
|
||||
echo "j()"
|
||||
if [[ ${@} == -* ]]; then
|
||||
j ${@}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user