12 lines
379 B
TypeScript
12 lines
379 B
TypeScript
import { execFileSync } from "node:child_process";
|
|
import * as p from "@clack/prompts";
|
|
import { readState, restow } from "./stow.js";
|
|
|
|
export async function update() {
|
|
p.intro("Hyprland dotfiles update");
|
|
execFileSync("sudo", ["pacman", "-Syu"], { stdio: "inherit" });
|
|
execFileSync("yay", ["-Syu"], { stdio: "inherit" });
|
|
restow(readState().dirs);
|
|
p.outro("Done.");
|
|
}
|