feat: Adds home directory setup in runs/after/system and fixes dev-env not copying markdownlint config with proper file name.

This commit is contained in:
2025-11-10 20:30:59 -05:00
parent 86d3a54e3b
commit e63e4f4fab
2 changed files with 10 additions and 2 deletions

View File

@@ -39,10 +39,10 @@ _setup-kanata() {
_setup-gpg() {
log " Setting up gpg."
local dir=/tmp/gpg-public-key
mkdir -p ~/{.gnupg,.ssh} &>/dev/null
chmod 700 ~/.gnupg
chmod 700 ~/.ssh
local dir=/tmp/gpg-public-key
git clone https://git.housh.dev/michael/gpg-public-key.git "$dir"
pushd "$dir" &>/dev/null || exit 1
(
@@ -52,6 +52,13 @@ _setup-gpg() {
rm -rf "$dir"
}
_setup-home-dir() {
log " Setting up home directory."
rm -rf "$HOME/Desktop" &>/dev/null
mkdir "$HOME/{containers,dev}" &>/dev/null
mkdir -p "$HOME/work/consults" &>/dev/null
}
install() {
log " Setting user shell to 'zsh'."
sudo chsh --shell "$(which zsh)"
@@ -65,6 +72,7 @@ install() {
_setup-kanata
_setup-mounts
_setup-gpg
_setup-home-dir
}
arg=${1:-""}