summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Danger Canty <jackdanger@squareup.com>2015-01-01 22:23:37 -0800
committerJack Danger Canty <jackdanger@squareup.com>2015-01-01 22:23:37 -0800
commitd761ea5158de9cccd7cf8ea8e370606feda25453 (patch)
tree2dbc3dbd58f6f07ef25174b045422912e8dce8bf
parent7ba93d9f8351be64b37c65ae04d594ee261d5d26 (diff)
Sleep when curses is unavailable
When the curses gem is not installed and the session is running inside tmux the user will see a flash of an opened and closed tmux pane but will not have a chance to read the error message.
-rwxr-xr-xfzf1
1 files changed, 1 insertions, 0 deletions
diff --git a/fzf b/fzf
index abfd97e9..3b049b92 100755
--- a/fzf
+++ b/fzf
@@ -40,6 +40,7 @@ begin
require 'curses'
rescue LoadError
$stderr.puts 'curses gem is not installed. Try `gem install curses`.'
+ sleep 1
exit 1
end
require 'thread'