diff options
| author | 2025-07-16 00:30:37 +0300 | |
|---|---|---|
| committer | 2025-07-16 00:30:37 +0300 | |
| commit | 53d597cb38669b30fe3e2cbbd458f160fcf650d2 (patch) | |
| tree | d77092eff4422c6e812a3452a617713115ead336 | |
| download | dotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.tar.gz dotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.tar.xz dotfiles-53d597cb38669b30fe3e2cbbd458f160fcf650d2.zip | |
Initial commit
| -rw-r--r-- | README.md | 32 | ||||
| -rw-r--r-- | environment/.config/environment.d/00-xdg.conf | 4 | ||||
| -rwxr-xr-x | init-skel | 5 |
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 | |||
| 3 | This utilises [GNU stow](https://www.gnu.org/software/stow/). In case you don't know how to use it: | ||
| 4 | |||
| 5 | ``` shell | ||
| 6 | stow -t ~ -R <pkg> | ||
| 7 | ``` | ||
| 8 | |||
| 9 | So, you can do stuff like: | ||
| 10 | |||
| 11 | ``` shell | ||
| 12 | stow -t ~ -R environment | ||
| 13 | stow -t ~ -R zsh | ||
| 14 | ``` | ||
| 15 | |||
| 16 | Or simply: | ||
| 17 | |||
| 18 | ``` shell | ||
| 19 | stow -t ~ -R * | ||
| 20 | ``` | ||
| 21 | |||
| 22 | Note that this repo contains a lot of dotfiles (files named with . in front). | ||
| 23 | This might make them be invisible with `ls` :). | ||
| 24 | |||
| 25 | ## Important notes | ||
| 26 | |||
| 27 | Before stowing anything, you should probably run `./init-skel` to make sure some generic directories don't end up linked | ||
| 28 | to this repo. | ||
| 29 | |||
| 30 | After 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 | ||
| 32 | 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 @@ | |||
| 1 | XDG_DATA_HOME=$HOME/.local/share | ||
| 2 | XDG_CONFIG_HOME=$HOME/.config | ||
| 3 | XDG_STATE_HOME=$HOME/.local/state | ||
| 4 | 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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | set -eu | ||
| 4 | |||
| 5 | mkdir -p ~/.config/environment.d/ | ||