summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-30 18:11:25 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-05-30 18:11:25 +0200
commit0ce9de258802b9c3259083e6f1ab5739e8e51084 (patch)
treedfc12f08249a8af46c3df90f0fa645faa04b89b2 /.config/zsh
parentde162b86736ed6dedf4eabdd4a1dbdcbb27915bc (diff)
Somehow got aliasrc working properly
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zshrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index dc398be..c39dc9d 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -1,7 +1,9 @@
# ZSH config
+
# Load plugins first
-[ -f $HOME/.config/zsh/plugins.zsh ] && source $HOME/.config/zsh/plugins.zsh
-[ -f $HOME/.config/zsh/functions.zsh ] && source $HOME/.config/zsh/functions.zsh
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliasrc"
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/plugins.zsh" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/plugins.zsh"
+[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/functions.zsh" ] && source "${XDG_CONFIG_HOME:-$HOME/.config}/zsh/functions.zsh"
# Uncomment the following line to use case-sensitive completion.
CASE_SENSITIVE="true"