This website works better with JavaScript.
Home
Explore
Help
Sign In
isprogram
/
autojump
mirror of
https://github.com/wting/autojump.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
53
Wiki
Activity
Browse Source
Added the new autocompletition file for zsh
pull/18/head
Simon Marache-Francisco
15 years ago
parent
df3efd5383
commit
d7c4f7177e
1 changed files
with
17 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+17
-0
_j
+ 17
- 0
_j
View File
@ -0,0 +1,17 @@
#compdef j
cur=${words[2, -1]}
ret=$(autojump --completion "${cur[*]}")
#echo "complete on " ${cur[*]}
if [ "$ret" != "" ]; then # if at least one answer
#if [ $( echo "$ret" | wc -l ) -eq 1 ]; then # Only one answer
# echo $ret
#else # several answers
for i in $(echo "$ret"); do
compadd -U $i
done
#fi
fi
Write
Preview
Loading…
Cancel
Save