mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 10:26:45 +08:00
fix(fzf): fix check for true Debian-like in debian setup function (#11460)
Check for `apt` and `apt-get` in debian setup function. Look for exact directory in debian-like setup function. Fixes #11459
This commit is contained in:
1 parent
e55e3f0f56
commit
b0bffcaf86
2 files changed
+2
-11
No files matched your search
@@ -60,7 +60,7 @@ function fzf_setup_using_base_dir() {
|
||||
|
||||
|
||||
function fzf_setup_using_debian() {
|
||||
if (( ! $+commands[dpkg] )) || zstyle -t ':omz:plugins:fzf' skip-dpkg; then
|
||||
if (( ! $+commands[apt] && ! $+commands[apt-get] )); then
|
||||
# Not a debian based distro
|
||||
return 1
|
||||
fi
|
||||
@@ -81,7 +81,7 @@ function fzf_setup_using_debian() {
|
||||
key_bindings="${PREFIX}/share/fzf/key-bindings.zsh"
|
||||
;;
|
||||
*)
|
||||
if [[ ! -f /usr/bin/fzf ]]; then
|
||||
if [[ ! -d /usr/share/doc/fzf/examples ]]; then
|
||||
# fzf not installed
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user