Nix : Rename clean to prune.
This commit is contained in:
parent
177991830f
commit
9e041b8415
|
@ -31,7 +31,7 @@ function nix_update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Free up root space.
|
# Free up root space.
|
||||||
function nix_clean() {
|
function nix_prune() {
|
||||||
nix-collect-garbage -d
|
nix-collect-garbage -d
|
||||||
_is_root && nix-store --gc
|
_is_root && nix-store --gc
|
||||||
}
|
}
|
||||||
|
|
|
@ -268,7 +268,7 @@ Command|Description
|
||||||
`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname.
|
`nix_rebuild [HOSTNAME]`|Rebuild system. Optionally force the hostname.
|
||||||
`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname.
|
`nix_switch [HOSTNAME]`|Rebuild and switch system. Optionally force the hostname.
|
||||||
`nix_update`|Update system versions.
|
`nix_update`|Update system versions.
|
||||||
`nix_clean`| Free up root space.
|
`nix_prune`| Free up root space.
|
||||||
`nix_shell [NAME]`|Spawn shell with specified nix environment. Uses flake.nix in current dir by default.
|
`nix_shell [NAME]`|Spawn shell with specified nix environment. Uses flake.nix in current dir by default.
|
||||||
`nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages.
|
`nix_tmpshell <PACKAGES>`|Spawn nix-shell with specified packages.
|
||||||
|
|
||||||
|
|
Reference in a new issue