1
0
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:
William Ting
2013-02-13 12:14:52 -06:00
parent 833dcca408
commit 17d31d881e
4 changed files with 49 additions and 1 deletions

6
bin/_j Normal file
View File

@@ -0,0 +1,6 @@
#compdef j
cur=${words[2, -1]}
autojump --complete ${=cur[*]} | while read i; do
compadd -U "$i";
done

View File

@@ -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