m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

[zsh-completion] Completion for unknown commands

This commit is contained in:
Junegunn Choi
2015-05-09 21:04:16 +09:00
parent f4a595eedd
commit dc64568c83
2 changed files with 4 additions and 22 deletions

View File

@@ -126,7 +126,7 @@ class Tmux
def prepare
tries = 0
begin
self.send_keys 'C-u', 'hello'
self.send_keys 'C-u', 'hello', 'Right'
self.until { |lines| lines[-1].end_with?('hello') }
rescue Exception
(tries += 1) < 5 ? retry : raise