summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-07-16 00:30:37 +0300
committerGravatar Uko Kokņevičs2025-07-16 00:30:37 +0300
commit53d597cb38669b30fe3e2cbbd458f160fcf650d2 (patch)
treed77092eff4422c6e812a3452a617713115ead336
downloaddotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.tar.gz
dotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.tar.xz
dotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.zip
Initial commit
-rw-r--r--README.md32
-rw-r--r--environment/.config/environment.d/00-xdg.conf4
-rwxr-xr-xinit-skel5
3 files changed, 41 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..736058a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,32 @@
1# dotfiles
2
3This utilises [GNU stow](https://www.gnu.org/software/stow/). In case you don't know how to use it:
4
5``` shell
6stow -t ~ -R <pkg>
7```
8
9So, you can do stuff like:
10
11``` shell
12stow -t ~ -R environment
13stow -t ~ -R zsh
14```
15
16Or simply:
17
18``` shell
19stow -t ~ -R *
20```
21
22Note that this repo contains a lot of dotfiles (files named with . in front).
23This might make them be invisible with `ls` :).
24
25## Important notes
26
27Before stowing anything, you should probably run `./init-skel` to make sure some generic directories don't end up linked
28to this repo.
29
30After stowing `emacs`, make sure `.emacs.d` doesn't exist. Kill all active emacs sessions (incl. daemons) and
31`rm -fr ~/.emacs ~/.emacs.el ~/.emacs.d` (of course, first make sure they don't contain anything important). Then start
32a 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 @@
1XDG_DATA_HOME=$HOME/.local/share
2XDG_CONFIG_HOME=$HOME/.config
3XDG_STATE_HOME=$HOME/.local/state
4PATH=$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 @@
1#!/bin/sh
2
3set -eu
4
5mkdir -p ~/.config/environment.d/