mirror of
https://github.com/skywind3000/z.lua
synced 2026-03-19 06:09:48 +00:00
fzf on cygwin
This commit is contained in:
5
z.lua
5
z.lua
@@ -1393,7 +1393,10 @@ function z_cd(patterns)
|
||||
local cmd = ((not fzf) and 'fzf' or fzf) .. ' ' .. cmd
|
||||
if not windows then
|
||||
tmpname = os.tmpname()
|
||||
cmd = 'cat "' .. tmpname .. '" | ' .. cmd .. ' --height 35%'
|
||||
cmd = 'cat "' .. tmpname .. '" | ' .. cmd
|
||||
if not os.getenv('_ZL_FZF_FULLSCR') then
|
||||
cmd = cmd .. ' --height 35%'
|
||||
end
|
||||
else
|
||||
tmpname = os.tmpname():gsub('\\', ''):gsub('%.', '')
|
||||
tmpname = os.getenv('TMP') .. '\\zlua_' .. tmpname .. '.txt'
|
||||
|
||||
Reference in New Issue
Block a user