mirror of https://gitlab.com/dabruh/dotfiles.git
Adjust variable paths
This commit is contained in:
parent
36d7d0d23f
commit
3671d21be5
|
@ -12,20 +12,22 @@ export VISUAL=code
|
||||||
# Misc vars
|
# Misc vars
|
||||||
export CHROME_EXECUTABLE=chromium # For Flutter
|
export CHROME_EXECUTABLE=chromium # For Flutter
|
||||||
|
|
||||||
|
# Set XDG directories:
|
||||||
|
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
|
||||||
|
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
||||||
|
|
||||||
# Clean home:
|
# Clean home:
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export ANDROID_HOME="$XDG_DATA_HOME/Android/Sdk"
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export KREW_ROOT="$XDG_DATA_HOME/krew"
|
||||||
export ANDROID_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/Android/Sdk"
|
export FLUTTER_HOME="$XDG_DATA_HOME/flutter"
|
||||||
export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo"
|
export GOPATH="$XDG_DATA_HOME/go"
|
||||||
export KREW_ROOT="${XDG_DATA_HOME:-$HOME/.local/share}/krew"
|
export HISTFILE="$XDG_DATA_HOME/history"
|
||||||
export FLUTTER_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/flutter"
|
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
|
||||||
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
|
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||||
export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history"
|
export NVM_DIR="$XDG_CONFIG_HOME/nvm"
|
||||||
export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc"
|
export NUGET_PACKAGES="$XDG_DATA_HOME/nuget"
|
||||||
export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh"
|
|
||||||
export NVM_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/nvm"
|
|
||||||
export NUGET_PACKAGES="${XDG_DATA_HOME:-$HOME/.local/share}/nuget"
|
|
||||||
|
|
||||||
# Color man pages:
|
# Color man pages:
|
||||||
export LESS=-r
|
export LESS=-r
|
||||||
|
@ -113,5 +115,5 @@ prepend_path_with_entries "${prepend_paths[@]}"
|
||||||
append_path_with_entries "${append_paths[@]}"
|
append_path_with_entries "${append_paths[@]}"
|
||||||
|
|
||||||
# Add the profile-extras file yourself if you wish to override anything:
|
# Add the profile-extras file yourself if you wish to override anything:
|
||||||
PROFILE_EXTRAS="${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile-extras"
|
PROFILE_EXTRAS="$XDG_CONFIG_HOME/shell/profile-extras"
|
||||||
[ -f "$PROFILE_EXTRAS" ] && . "$PROFILE_EXTRAS"
|
[ -f "$PROFILE_EXTRAS" ] && . "$PROFILE_EXTRAS"
|
||||||
|
|
Loading…
Reference in New Issue