Moving XDG stuff to .zshenv

This commit is contained in:
Bartek Stalewski 2020-10-23 16:07:36 +02:00
parent 69e71dd79d
commit 2a973f2438
2 changed files with 2 additions and 3 deletions

View File

@ -24,6 +24,8 @@ ln -sf ~/.dotfiles/tmux ~/.config/
## zsh ## zsh
echo "skip_global_compinit=1" > ~/.zshenv echo "skip_global_compinit=1" > ~/.zshenv
echo "export XDG_CONFIG_HOME='~/.config'" >> ~/.zshenv
echo "export XDG_DATA_HOME='~/.cache'" >> ~/.zshenv
echo "export ZDOTDIR=~/.config/zsh" >> ~/.zshenv echo "export ZDOTDIR=~/.config/zsh" >> ~/.zshenv
mkdir -p ~/.cache/zsh ~/.config/zsh/plugins ~/.config/zsh/themes mkdir -p ~/.cache/zsh ~/.config/zsh/plugins ~/.config/zsh/themes
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.config/zsh/plugins/zsh-autosuggestions

View File

@ -1,6 +1,3 @@
export XDG_CONFIG_HOME=~/.config
export XDG_DATA_HOME=~/.cache
bindkey -e bindkey -e
autoload -U promptinit && promptinit autoload -U promptinit && promptinit
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump