From 53d597cb38669b30fe3e2cbbd458f160fcf650d2 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Wed, 16 Jul 2025 00:30:37 +0300 Subject: Initial commit --- README.md | 32 +++++++++++++++++++++++++++ environment/.config/environment.d/00-xdg.conf | 4 ++++ init-skel | 5 +++++ 3 files changed, 41 insertions(+) create mode 100644 README.md create mode 100644 environment/.config/environment.d/00-xdg.conf create mode 100755 init-skel diff --git a/README.md b/README.md new file mode 100644 index 0000000..736058a --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# dotfiles + +This utilises [GNU stow](https://www.gnu.org/software/stow/). In case you don't know how to use it: + +``` shell +stow -t ~ -R +``` + +So, you can do stuff like: + +``` shell +stow -t ~ -R environment +stow -t ~ -R zsh +``` + +Or simply: + +``` shell +stow -t ~ -R * +``` + +Note that this repo contains a lot of dotfiles (files named with . in front). +This might make them be invisible with `ls` :). + +## Important notes + +Before stowing anything, you should probably run `./init-skel` to make sure some generic directories don't end up linked +to this repo. + +After stowing `emacs`, make sure `.emacs.d` doesn't exist. Kill all active emacs sessions (incl. daemons) and +`rm -fr ~/.emacs ~/.emacs.el ~/.emacs.d` (of course, first make sure they don't contain anything important). Then start +a new Emacs session and check whether any of them have been recreated. If yes, there's some issue. diff --git a/environment/.config/environment.d/00-xdg.conf b/environment/.config/environment.d/00-xdg.conf new file mode 100644 index 0000000..51bc1fa --- /dev/null +++ b/environment/.config/environment.d/00-xdg.conf @@ -0,0 +1,4 @@ +XDG_DATA_HOME=$HOME/.local/share +XDG_CONFIG_HOME=$HOME/.config +XDG_STATE_HOME=$HOME/.local/state +PATH=$HOME/.local/bin:$PATH diff --git a/init-skel b/init-skel new file mode 100755 index 0000000..6f4f701 --- /dev/null +++ b/init-skel @@ -0,0 +1,5 @@ +#!/bin/sh + +set -eu + +mkdir -p ~/.config/environment.d/ -- cgit v1.2.3