mirror of
https://github.com/Ascyii/dotfiles.git
synced 2026-01-01 06:54:24 -05:00
Some improvements
This commit is contained in:
11
cli/dot-config/yazi/init.lua
Normal file
11
cli/dot-config/yazi/init.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
function Linemode:line_info()
|
||||
local time = math.floor(self._file.cha.mtime or 0)
|
||||
if time == 0 then
|
||||
time = ""
|
||||
elseif os.date("%Y", time) == os.date("%Y") then
|
||||
time = os.date("%b %d %H:%M", time)
|
||||
else
|
||||
time = os.date("%b %d %Y", time)
|
||||
end
|
||||
return time
|
||||
end
|
||||
Reference in New Issue
Block a user