mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-13 22:02:34 +00:00
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:
@@ -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:-""}
|
||||
|
||||
Reference in New Issue
Block a user