We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7707c09 commit 6418698Copy full SHA for 6418698
mount.yazi/main.lua
@@ -177,8 +177,10 @@ function M.obtain()
177
local main, sub
178
if ya.target_os() == "macos" then
179
main, sub = p.src:match("^(/dev/disk%d+)(.+)$")
180
- else
181
- main, sub = p.src:match("^(/dev/[a-z]+[a-z])(%d+)$")
+ elseif p.src:find("/dev/nvme", 1, true) == 1 then -- /dev/nvme0n1p1
+ main, sub = p.src:match("^(/dev/nvme%d+n%d+)(p%d+)$")
182
+ elseif p.src:find("/dev/sd", 1, true) == 1 then -- /dev/sda1
183
+ main, sub = p.src:match("^(/dev/sd[a-z])(%d+)$")
184
end
185
if sub then
186
if last ~= main then
0 commit comments