Skip to content

Commit

Permalink
Move XDG vars to cache file
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Apr 10, 2024
1 parent c93dede commit 423bc44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions home/dot_cache/xdg.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
export HISTFILE="${XDG_CACHE_HOME}/bash/history"
export LESSHISTFILE="${XDG_CACHE_HOME}/less/history"
export LESSKEY="${XDG_CONFIG_HOME}/less/lesskey"
Expand Down
10 changes: 3 additions & 7 deletions home/dot_profile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
# PATH
export PATH="$HOME/.local/bin:$HOME/.orbstack/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"

# XDG
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_STATE_HOME="$HOME/.local/state"
source $XDG_CACHE_HOME/xdg.sh

# PATH
export PATH="$HOME/.local/bin:$HOME/.orbstack/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin"

# LS_COLORS
export LS_COLORS="$(vivid --color-mode 8-bit generate one-dark)"

0 comments on commit 423bc44

Please sign in to comment.