dotless

automated dotfiles setup for all my systems
git clone git://git.daat.foo/dotless.git
Log | Files | Refs | README | LICENSE

commit 0b2c7660e3f5d6ec90255eede709d81126e49d89
parent c8a7ec3cfe39d88d3aead5422d905f93a95e6cf4
Author: cowmonk <cowmonk@based.pt>
Date:   Fri, 29 May 2026 18:45:06 +0000

uncomplicating the mess of yash

getting rid of my initial design of making everything too complicated
and defaulting to users having to specify the user instead.

Diffstat:
MMakefile | 9++++-----
MREADME | 4+++-
2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/Makefile b/Makefile @@ -7,9 +7,8 @@ .POSIX: SHELL = /bin/sh -USRFILE = .user -USR = $(shell tr -d '\n' < $(USRFILE) 2>/dev/null) -HOME_DIR = $(shell awk -F: -v u="$(USR)" '$$1==u{print $$6}' /etc/passwd) +USR ?= $(whoami) +HOME_DIR = /home/$(USR)/ include config.mk @@ -79,8 +78,8 @@ install: build #install -d -m 0755 "$(HOME_DIR)/.config/yash"; \ #cp -av $(TOP)/files/config/yash/* $(HOME_DIR)/.config/yash/; \ #chown -R $(USR):$(USR) $(HOME_DIR)/.config/; - echo $(USR) - echo $(HOME_DIR) + echo $(USR); \ + echo $(HOME_DIR); \ fi clean: build diff --git a/README b/README @@ -36,8 +36,10 @@ Here are the options (these are parsed as ENV variables): Here is an example of a user using dotless for a laptop installing to a /usr/local prefix on OpenBSD whist using yash shell: ```sh $ make PREFIX=/usr/local LAPTOP=1 BSD=1 YASH=1 -$ doas make PREFIX=/usr/local LAPTOP=1 BSD=1 YASH=1 install # yes, I prefer opendoas +$ doas make PREFIX=/usr/local LAPTOP=1 BSD=1 YASH=1 USR=cowmonk install # yes, I prefer opendoas ``` +NOTE: if you want to install my particular yash profile, you need to specify a user to install the files to the correct home +directory or it'll default to `$(whoami)` during install, which is likely the root user. Patches -------