1
0
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:
skywind3000
2019-02-04 05:10:07 +08:00
parent b75c089147
commit 877ea56263

5
z.lua
View File

@@ -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'