本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
isprogram
/
autojump
镜像来自
https://github.com/wting/autojump.git
關注
1
收藏
0
複製
0
程式碼
問題
0
Projects
0
版本發佈
53
Wiki
活動
瀏覽代碼
Added the new autocompletition file for zsh
pull/18/head
Simon Marache-Francisco
15 年之前
父節點
df3efd5383
當前提交
d7c4f7177e
共有
1 個檔案被更改
,包括
17 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+17
-0
_j
+ 17
- 0
_j
查看文件
@ -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…
取消
儲存