mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-02 11:32:42 +00:00
20 lines
451 B
TOML
20 lines
451 B
TOML
[metadata]
|
|
name = "mounts"
|
|
description = "List mounted filesystems"
|
|
requirements = ["df", "awk"]
|
|
|
|
[source]
|
|
command = "df -h --output=target,fstype,size,used,avail,pcent 2>/dev/null | tail -n +2"
|
|
display = "{split: :0}"
|
|
|
|
[preview]
|
|
command = "df -h '{}' && echo && ls -la '{}' 2>/dev/null | head -20"
|
|
|
|
[keybindings]
|
|
enter = "actions:cd"
|
|
|
|
[actions.cd]
|
|
description = "Open a shell in the selected mount point"
|
|
command = "cd {} && $SHELL"
|
|
mode = "execute"
|