mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			307 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd
 | |
| 
 | |
| # Simple completion front-end implementing expansion.
 | |
| 
 | |
| local curcontext="$curcontext"
 | |
| 
 | |
| if [[ -z "$curcontext" ]]; then
 | |
|   curcontext="expand-word:::"
 | |
| else
 | |
|   curcontext="expand-word:${curcontext#*:}"
 | |
| fi
 | |
| 
 | |
| _main_complete _expand
 |