From 83825dbbd3f78f93ecc3785fb7f13adbbcca1852 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 10 Nov 2013 19:51:32 +0900 Subject: [PATCH] Add Tips section --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 89f3838..c67a6e1 100644 --- a/README.md +++ b/README.md @@ -197,6 +197,32 @@ zle -N fzf-history-widget bindkey '^R' fzf-history-widget ``` +Tips +---- + +### Faster startup with `--disable-gems` options + +If you're running Ruby 1.9 or above, you can improve the startup time with +`--disable-gems` option to Ruby. + +- `time ruby ~/bin/fzf -h` + - 0.077 sec +- `time ruby --disable-gems ~/bin/fzf -h` + - 0.025 sec + +Define fzf alias with the option as follows: + +```sh +alias fzf='ruby --disable-gems ~/bin/fzf' +``` + +### Incorrect display on Ruby 1.8 + +It is reported that the output of fzf can become unreadable on some terminals +when it's running on Ruby 1.8. If you experience the problem, upgrade your Ruby +to 1.9 or above. Ruby 1.9 or above is also required for displaying Unicode +characters. + License -------