summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.yashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.yashrc b/.yashrc
index b432de1..f4642e9 100644
--- a/.yashrc
+++ b/.yashrc
@@ -39,7 +39,7 @@ PS1='${LOGNAME}@${HOSTNAME%%.*} '$PS1
# >>> options <<<
# variables needed for command history
-HISTFILE=$XDG_CACHE_HOME/yash_history
+HISTFILE=${XDG_CACHE_HOME:=~/.cache}/yash_history
HISTSIZE=5000
# enable bash-like extended expansion
@@ -187,4 +187,4 @@ function venv() {
}
# try to load a host-specific file now
-[ -e $XDG_CONFIG_HOME/yash/$(uname -n) ] && . $XDG_CONFIG_HOME/yash/$(uname -n)
+[ -e ${XDG_CONFIG_HOME:=~/.config}/yash/$(uname -n) ] && . $XDG_CONFIG_HOME/yash/$(uname -n)