Change to conditional zle reset-prompt
This commit is contained in:
		@@ -1,13 +1,11 @@
 | 
				
			|||||||
# Fuzzy find a file and then edit it
 | 
					# Fuzzy find a file and then edit it
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_fedit() {
 | 
					_fedit() {
 | 
				
			||||||
    /usr/bin/fedit
 | 
					    /usr/bin/fedit && zle reset-prompt
 | 
				
			||||||
    zle reset-prompt
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
_etcedit() {
 | 
					_etcedit() {
 | 
				
			||||||
    /usr/bin/fedit --etc
 | 
					    /usr/bin/fedit --etc && zle reset-prompt
 | 
				
			||||||
    zle reset-prompt
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
zle -N _fedit
 | 
					zle -N _fedit
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,7 +1,6 @@
 | 
				
			|||||||
# Fuzzy-find a file and open it in less
 | 
					# Fuzzy-find a file and open it in less
 | 
				
			||||||
fless() {
 | 
					fless() {
 | 
				
			||||||
    /usr/bin/fless
 | 
					    /usr/bin/fless && zle reset-prompt
 | 
				
			||||||
    zle reset-prompt
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
zle -N fless
 | 
					zle -N fless
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user