Move $XDG_CONFIG_HOME/shell/init_dotfiles to $XDG_DATA_HOME/dotfiles/setup.sh

This commit is contained in:
Alexander Hess 2023-04-10 18:03:34 +02:00
parent 71baf34d58
commit f76b32b790
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
3 changed files with 4 additions and 6 deletions

View file

@ -9,8 +9,8 @@
# Further Info: https://wiki.archlinux.org/title/XDG_Base_Directory
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" # also set temporarily in ~/.config/shell/init_dotfiles.sh
export XDG_STATE_HOME="$HOME/.local/state" # also set temporarily in ~/.config/shell/init_dotfiles.sh
export XDG_DATA_HOME="$HOME/.local/share" # also set temporarily in $XDG_DATA_HOME/dotfiles/setup.sh
export XDG_STATE_HOME="$HOME/.local/state" # also set temporarily in $XDG_DATA_HOME/dotfiles/setup.sh
# Move common tools' config and cache files into XDG directories
export BAT_CONFIG_PATH="$XDG_CONFIG_PATH/bat/config"

View file

@ -8,10 +8,8 @@ This repository contains useful (config) files that I use on my machines.
On a freshly set up machine, run:
```bash
curl https://code.webartifex.biz/alexander/dotfiles/-/raw/main/.config/shell/init_dotfiles.sh \
> ./init_dotfiles.sh \
&& source ./init_dotfiles.sh \
&& rm ./init_dotfiles.sh
curl https://code.webartifex.biz/alexander/dotfiles/-/raw/main/.local/share/dotfiles/setup.sh \
> ./setup.sh && source ./setup.sh && rm ./setup.sh
```
This gives you a local copy of the latest version of this repository