1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02:00

home-manager: rename rebuild to switch

This commit is contained in:
Robert Helgesson 2017-01-11 22:58:55 +01:00
parent 94fd39c41c
commit bd951cda66
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -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