mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			235 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			235 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #compdef j
 | ||
| 
 | ||
| cur=${words[2, -1]}
 | ||
| 
 | ||
| ret=$(autojump --completion "${cur[*]}")
 | ||
| 
 | ||
| if [ "$ret" != "" ]; then  # if at least one answer
 | ||
|     for i in $(echo "$ret"); do
 | ||
|         compadd -U $i # add all of them as possible completion
 | ||
|     done
 | ||
| fi
 |