mirror of
https://github.com/wting/autojump
synced 2026-03-02 03:49:26 +00:00
merge autojump_completion into autojump.sh ; fix atomic write ; avoid risk of extreme slowdown by multiple autojumps in prompt command
This commit is contained in:
@@ -2,12 +2,3 @@
|
||||
#
|
||||
# $Id: unrar,v 1.4 2004/07/05 23:37:47 ianmacd Exp $
|
||||
|
||||
_autojump()
|
||||
{
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
cur=${COMP_WORDS[1]}
|
||||
IFS=$'\n' read -d '' -a COMPREPLY < <(autojump --completion "$cur")
|
||||
return 0
|
||||
}
|
||||
complete -F _autojump j
|
||||
|
||||
Reference in New Issue
Block a user