2020-05-06 18:38:17 +00:00
|
|
|
# [fzf](https://wiki.archlinux.org/index.php/Fzf)
|
|
|
|
|
2020-05-10 17:28:17 +00:00
|
|
|
| Distribution | Package |
|
|
|
|
| ------------ | ------- |
|
|
|
|
| Archlinux | `fzf` |
|
|
|
|
| Ubuntu | `fzf` |
|
|
|
|
|
2020-05-06 18:38:17 +00:00
|
|
|
Add to `~/.bashrc`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
[[ -f /usr/share/fzf/key-bindings.bash ]] && \
|
|
|
|
source /usr/share/fzf/key-bindings.bash
|
|
|
|
[[ -f /usr/share/fzf/completion.bash ]] && \
|
|
|
|
source /usr/share/fzf/completion.bash
|
|
|
|
|
|
|
|
export FZF_DEFAULT_COMMAND='fd -H'
|
|
|
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
|
|
|
```
|
2020-05-19 18:51:55 +00:00
|
|
|
|
|
|
|
| Shorcut | Explain |
|
|
|
|
| -------- | ------------------------------------ |
|
|
|
|
| `Ctrl-T` | search through files and directories |
|
|
|
|
| `Ctrl-R` | search though command-line history |
|