Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
90bdb8a1
Unverified
Commit
90bdb8a1
authored
Mar 15, 2021
by
Dario Vladović
Committed by
GitHub
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(fzf): add support for Termux package (#9718)
parent
9d556cd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
fzf.plugin.zsh
plugins/fzf/fzf.plugin.zsh
+15
-5
No files found.
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
local
completions key_bindings
case
$PREFIX
in
*
com.termux
*
)
# 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
# Determine completion file path: first bullseye/sid, then buster/stretch
local
completions
=
"/usr/share/doc/fzf/examples/completion.zsh"
completions
=
"/usr/share/doc/fzf/examples/completion.zsh"
[[
-f
"
$completions
"
]]
||
completions
=
"/usr/share/zsh/vendor-completions/_fzf"
[[
-f
"
$completions
"
]]
||
completions
=
"/usr/share/zsh/vendor-completions/_fzf"
key_bindings
=
"/usr/share/doc/fzf/examples/key-bindings.zsh"
local
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