Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
+1 vote
in vifm by

Do you have any suggestions on how to get a Volumes menu for Linux? There is no builtin command for Linux, am I right?

Thank you

1 Answer

+2 votes
by
selected by
 
Best answer

There is no builtin command for Linux, am I right?

Correct.

Do you have any suggestions on how to get a Volumes menu for Linux?

Something like this:

!lsblk -no MOUNTPOINT | sed '/^$/d' %M
by
edited by

Seems useful.

command! mounts /bin/lsblk -no MOUNTPOINT %u

Or, if you really need a menu:

command! mounts /bin/lsblk -no MOUNTPOINT|sed '/^$/d'|sed '/\[SWAP\]/d'|sort|uniq %M
...