Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
fa780867
Unverified
Commit
fa780867
authored
Nov 09, 2020
by
Elyézer Rezende
Committed by
GitHub
Nov 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(fzf): consistently ignore .git directory in `FZF_DEFAULT_COMMAND` (#9421)
Be consistent and ignore contents of `.git` directory no matter how FZF_DEFAULT_COMMAND is set.
parent
28ed2880
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
fzf.plugin.zsh
plugins/fzf/fzf.plugin.zsh
+2
-2
No files found.
plugins/fzf/fzf.plugin.zsh
View file @
fa780867
...
@@ -154,10 +154,10 @@ unset -f setup_using_opensuse_package setup_using_debian_package setup_using_bas
...
@@ -154,10 +154,10 @@ unset -f setup_using_opensuse_package setup_using_debian_package setup_using_bas
if
[[
-z
"
$FZF_DEFAULT_COMMAND
"
]]
;
then
if
[[
-z
"
$FZF_DEFAULT_COMMAND
"
]]
;
then
if
((
$+
commands[rg]
))
;
then
if
((
$+
commands[rg]
))
;
then
export
FZF_DEFAULT_COMMAND
=
'rg --files --hidden'
export
FZF_DEFAULT_COMMAND
=
'rg --files --hidden
--glob "!.git/*"
'
elif
((
$+
commands[fd]
))
;
then
elif
((
$+
commands[fd]
))
;
then
export
FZF_DEFAULT_COMMAND
=
'fd --type f --hidden --exclude .git'
export
FZF_DEFAULT_COMMAND
=
'fd --type f --hidden --exclude .git'
elif
((
$+
commands[ag]
))
;
then
elif
((
$+
commands[ag]
))
;
then
export
FZF_DEFAULT_COMMAND
=
'ag -l --hidden -g ""'
export
FZF_DEFAULT_COMMAND
=
'ag -l --hidden -g ""
--ignore .git
'
fi
fi
fi
fi
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