home-manager: rename rebuild
to switch
This commit is contained in:
parent
94fd39c41c
commit
bd951cda66
|
@ -23,7 +23,7 @@ function doBuild() {
|
||||||
-o "$output"
|
-o "$output"
|
||||||
}
|
}
|
||||||
|
|
||||||
function doRebuild() {
|
function doSwitch() {
|
||||||
local wrkdir
|
local wrkdir
|
||||||
wrkdir="$(mktemp -d)"
|
wrkdir="$(mktemp -d)"
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ function doHelp() {
|
||||||
echo "Commands"
|
echo "Commands"
|
||||||
echo " help Print this help"
|
echo " help Print this help"
|
||||||
echo " build Build configuration into result directory"
|
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 " generations List all home environment generations"
|
||||||
echo " packages List all packages installed in home-manager-path"
|
echo " packages List all packages installed in home-manager-path"
|
||||||
}
|
}
|
||||||
|
@ -67,8 +67,8 @@ case "$1" in
|
||||||
build)
|
build)
|
||||||
doBuild "$2" "result"
|
doBuild "$2" "result"
|
||||||
;;
|
;;
|
||||||
rebuild)
|
switch)
|
||||||
doRebuild "$2"
|
doSwitch "$2"
|
||||||
;;
|
;;
|
||||||
generations)
|
generations)
|
||||||
doListGens
|
doListGens
|
||||||
|
|
Loading…
Reference in a new issue