Bypass alias in fzf preview (#329)

This commit is contained in:
Ajeet D'Souza 2022-03-08 10:53:30 +05:30 committed by GitHub
parent dc64d912ab
commit 90e781a192
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -12,13 +12,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Manpages: moved to `man/man1/*.1`.
- Fzf: added `--keep-right` option by default, upgraded minimum version to v0.21.0.
- Bash: only enable completions on 4.4+.
### Fixed
- Rename `_z` completion function to avoid conflicts with other shell plugins.
- Bash/Zsh: rename `_z` completion function to avoid conflicts with other shell plugins.
- Elvish: upgrade to new lambda syntax.
- Fzf: added `--keep-right` option by default, upgraded minimum version to v0.21.0.
- Bash: only enable completions on 4.4+.
- Fzf: bypass `ls` alias in preview window.
## [0.8.0] - 2021-12-25

View File

@ -38,7 +38,8 @@ impl Fzf {
"--bind=ctrl-z:ignore",
]);
if cfg!(unix) {
command.arg("--preview=ls -p {2..}");
command.env("SHELL", "sh");
command.arg(r"--preview=\command -p ls -p {2..}");
}
}