mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-04 19:28:58 +08:00
Refactor shell extensions
- Use symlinks instead of generating the full content - Update fish_user_paths and remove ~/.config/fish/functions/fzf.fish - Create wrapper script for fzf when Ruby version and use it instead of exported function not to break fzf-tmux
This commit is contained in:
1 parent
dd6138a655
commit
3935aa84d8
8 files changed
+249
-287
No files matched your search
@@ -623,7 +623,8 @@ class FZF
|
||||
def start_reader
|
||||
stream =
|
||||
if @source.tty?
|
||||
if default_command = ENV['FZF_DEFAULT_COMMAND']
|
||||
default_command = ENV['FZF_DEFAULT_COMMAND']
|
||||
if default_command && !default_command.empty?
|
||||
IO.popen(default_command)
|
||||
elsif !`which find`.empty?
|
||||
IO.popen("find * -path '*/\\.*' -prune -o -type f -print -o -type l -print 2> /dev/null")
|
||||
|
||||
Reference in new issue
Block a user