prepared dot files
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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.");
|
||||
}
|
||||
Reference in New Issue
Block a user