snapper aliases
This commit is contained in:
parent
44430a5b90
commit
afd8a16692
1 changed files with 13 additions and 0 deletions
|
|
@ -18,3 +18,16 @@ def --env z [path: string = "~"] {
|
||||||
zo $path
|
zo $path
|
||||||
l
|
l
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def "snapper list" [] {
|
||||||
|
snapper --csvout list | from csv | reject config subvolume default user used-space userdata active
|
||||||
|
}
|
||||||
|
|
||||||
|
def "snapper clear" [] {
|
||||||
|
let list = snapper --csvout list | from csv | reject config subvolume default user used-space userdata active | skip 1
|
||||||
|
|
||||||
|
let first = $list | first
|
||||||
|
let last = $list | last
|
||||||
|
|
||||||
|
snapper delete $"($first.number)-($last.number)"
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue