mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
home-manager: rename rebuild
to switch
This commit is contained in:
parent
94fd39c41c
commit
bd951cda66
1 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ function doBuild() {
|
|||
-o "$output"
|
||||
}
|
||||
|
||||
function doRebuild() {
|
||||
function doSwitch() {
|
||||
local wrkdir
|
||||
wrkdir="$(mktemp -d)"
|
||||
|
||||
|
@ -58,7 +58,7 @@ function doHelp() {
|
|||
echo "Commands"
|
||||
echo " help Print this help"
|
||||
echo " build Build configuration into result directory"
|
||||
echo " rebuild Build and activate environment"
|
||||
echo " switch Build and activate configuration"
|
||||
echo " generations List all home environment generations"
|
||||
echo " packages List all packages installed in home-manager-path"
|
||||
}
|
||||
|
@ -67,8 +67,8 @@ case "$1" in
|
|||
build)
|
||||
doBuild "$2" "result"
|
||||
;;
|
||||
rebuild)
|
||||
doRebuild "$2"
|
||||
switch)
|
||||
doSwitch "$2"
|
||||
;;
|
||||
generations)
|
||||
doListGens
|
||||
|
|
Loading…
Reference in a new issue