mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2024-11-22 04:45:14 +00:00
Encourage use of function instead of alias (exportability)
This commit is contained in:
parent
cf0ca8578c
commit
ad8ec7f387
11
README.md
11
README.md
@ -328,14 +328,17 @@ If you're running Ruby 1.9 or above, you can improve the startup time with
|
|||||||
- `time ruby --disable-gems ~/bin/fzf -h`
|
- `time ruby --disable-gems ~/bin/fzf -h`
|
||||||
- 0.025 sec
|
- 0.025 sec
|
||||||
|
|
||||||
Define fzf alias with the option as follows:
|
You can define fzf function with the option as follows:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
alias fzf='ruby --disable-gems ~/bin/fzf'
|
fzf() {
|
||||||
|
ruby --disable-gems ~/bin/fzf "$@"
|
||||||
|
}
|
||||||
|
export -f fzf
|
||||||
```
|
```
|
||||||
|
|
||||||
This is automatically set up in your .bashrc and .zshrc if you use the bundled
|
However, this is automatically set up in your .bashrc and .zshrc if you use the
|
||||||
[install](https://github.com/junegunn/fzf/blob/master/install) script.
|
bundled [install](https://github.com/junegunn/fzf/blob/master/install) script.
|
||||||
|
|
||||||
### Incorrect display on Ruby 1.8
|
### Incorrect display on Ruby 1.8
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user