Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
90bdb8a1
Unverified
Commit
90bdb8a1
authored
Mar 15, 2021
by
Dario Vladović
Committed by
GitHub
Mar 15, 2021
Browse files
feat(fzf): add support for Termux package (#9718)
parent
9d556cd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/fzf/fzf.plugin.zsh
View file @
90bdb8a1
...
@@ -64,11 +64,21 @@ function setup_using_debian_package() {
...
@@ -64,11 +64,21 @@ function setup_using_debian_package() {
# NOTE: There is no need to configure PATH for debian package, all binaries
# NOTE: There is no need to configure PATH for debian package, all binaries
# are installed to /usr/bin by default
# are installed to /usr/bin by default
# Determine completion file path: first bullseye/sid, then buster/stretch
local
completions key_bindings
local
completions
=
"/usr/share/doc/fzf/examples/completion.zsh"
[[
-f
"
$completions
"
]]
||
completions
=
"/usr/share/zsh/vendor-completions/_fzf"
case
$PREFIX
in
*
com.termux
*
)
local
key_bindings
=
"/usr/share/doc/fzf/examples/key-bindings.zsh"
# Support Termux package
completions
=
"
${
PREFIX
}
/share/fzf/completion.zsh"
key_bindings
=
"
${
PREFIX
}
/share/fzf/key-bindings.zsh"
;;
*
)
# Determine completion file path: first bullseye/sid, then buster/stretch
completions
=
"/usr/share/doc/fzf/examples/completion.zsh"
[[
-f
"
$completions
"
]]
||
completions
=
"/usr/share/zsh/vendor-completions/_fzf"
key_bindings
=
"/usr/share/doc/fzf/examples/key-bindings.zsh"
;;
esac
# Auto-completion
# Auto-completion
if
[[
-o
interactive
&&
"
$DISABLE_FZF_AUTO_COMPLETION
"
!=
"true"
]]
;
then
if
[[
-o
interactive
&&
"
$DISABLE_FZF_AUTO_COMPLETION
"
!=
"true"
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment