More compliant with XDG standards
This commit is contained in:
parent
377c434bdb
commit
d2549aa5d5
3 changed files with 4 additions and 3 deletions
|
@ -8,7 +8,7 @@ rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~
|
|||
|
||||
# repo + preparations
|
||||
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
|
||||
ln -sf ~/.dotfiles/nvim ~/.config/
|
||||
|
@ -26,7 +26,7 @@ ln -sf ~/.dotfiles/tmux ~/.config/
|
|||
|
||||
## zsh
|
||||
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_CONFIG_HOME=$HOME/.config" >> $HOME/.zshenv
|
||||
echo "export ZDOTDIR=$HOME/.config/zsh" >> $HOME/.zshenv
|
||||
|
|
|
@ -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 'junegunn/fzf'
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
# key mode
|
||||
bindkey -e
|
||||
mkdir -p $XDG_DATA_HOME/zsh
|
||||
|
||||
# global exports and options
|
||||
setopt share_history
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue