More compliant with XDG standards

This commit is contained in:
Bartek Stalewski 2021-03-11 16:53:35 +01:00
parent 377c434bdb
commit d2549aa5d5
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,7 @@ rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~
# repo + preparations # repo + preparations
git clone --recurse https://github.com/ftpd/dotfiles.git ~/.dotfiles git clone --recurse https://github.com/ftpd/dotfiles.git ~/.dotfiles
mkdir -p ~/.cache/zsh ~/.config/git ~/.config/local mkdir -p ~/.config/git ~/.config/local
## neovim ## neovim
ln -sf ~/.dotfiles/nvim ~/.config/ ln -sf ~/.dotfiles/nvim ~/.config/
@ -26,7 +26,7 @@ ln -sf ~/.dotfiles/tmux ~/.config/
## zsh ## zsh
echo "skip_global_compinit=1" > $HOME/.zshenv echo "skip_global_compinit=1" > $HOME/.zshenv
echo "export XDG_DATA_HOME=$HOME/.cache" >> $HOME/.zshenv echo "export XDG_DATA_HOME=$HOME/.local/share" >> $HOME/.zshenv
echo "export XDG_CACHE_HOME=$HOME/.cache" >> $HOME/.zshenv echo "export XDG_CACHE_HOME=$HOME/.cache" >> $HOME/.zshenv
echo "export XDG_CONFIG_HOME=$HOME/.config" >> $HOME/.zshenv echo "export XDG_CONFIG_HOME=$HOME/.config" >> $HOME/.zshenv
echo "export ZDOTDIR=$HOME/.config/zsh" >> $HOME/.zshenv echo "export ZDOTDIR=$HOME/.config/zsh" >> $HOME/.zshenv

View file

@ -1,4 +1,4 @@
call plug#begin('$XDG_CACHE_HOME/vim-plugins') call plug#begin('$XDG_DATA_HOME/vim-plugins')
Plug 'NLKNguyen/papercolor-theme' Plug 'NLKNguyen/papercolor-theme'
Plug 'junegunn/fzf' Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'

View file

@ -1,5 +1,6 @@
# key mode # key mode
bindkey -e bindkey -e
mkdir -p $XDG_DATA_HOME/zsh
# global exports and options # global exports and options
setopt share_history setopt share_history