Move everything possible into XDG directories
With the help of xdg-ninja (https://github.com/b3nj5m1n/xdg-ninja) we move all kinds of config/cache files into the XDG directories
This commit is contained in:
parent
7ceed45a28
commit
13b8724696
27 changed files with 131 additions and 42 deletions
35
.zshenv
35
.zshenv
|
|
@ -1,35 +0,0 @@
|
|||
# This file is sourced by zsh before ~/.zprofile and ~/.zshrc
|
||||
# (it's kind of a zsh-only ~/.profile file)
|
||||
|
||||
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
export ZPLUG_HOME="$HOME/.zplug"
|
||||
|
||||
|
||||
# Use <Up> key to auto-complete a partially typed command
|
||||
# TODO: the coloring does not work when zsh-syntax-highlighting is loaded simultaniously
|
||||
# Source: https://github.com/zsh-users/zsh-history-substring-search/issues/131
|
||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="fg=#ffffff,bg=#38761d,bold"
|
||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND="fg=#ffffff,bg=#990000,bold"
|
||||
|
||||
|
||||
# Notify about shorter aliases for typed commands
|
||||
# Source: https://github.com/MichaelAquilina/zsh-you-should-use
|
||||
export YSU_MESSAGE_POSITION="before"
|
||||
export YSU_MODE="BESTMATCH"
|
||||
|
||||
|
||||
# Suggest commands as one types
|
||||
# Source: https://github.com/zsh-users/zsh-autosuggestions
|
||||
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#666666,bg=bold"
|
||||
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
|
||||
# Temporary files should go into ~/.cache
|
||||
export ZSH_COMPDUMP="${XDG_CACHE_HOME:-$HOME/.cache}/.zcompdump-$HOST-$ZSH_VERSION"
|
||||
|
||||
|
||||
# Automatically source ".env" files in folders
|
||||
# Source: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/dotenv
|
||||
export ZSH_DOTENV_FILE=".env"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue