Fix usage in user folder instead of global

This commit is contained in:
crater2150 2019-02-01 11:13:51 +01:00
parent b3e40ed202
commit 24bede8c5c
5 changed files with 35 additions and 12 deletions

4
zshrc
View file

@ -14,6 +14,8 @@ setopt chase_links
setopt short_loops
setopt cdable_vars
export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}
# get a file from ZDOTDIR, return file in /etc/zsh if it does not exist
zdotfile() {
if [[ -e $ZDOTDIR/$1 ]]; then
@ -33,7 +35,7 @@ stty -ixon
. $(zdotfile modules/loader.zsh) && mod_init
for i in ${ZDOTDIR:+ZDOTDIR/aliases/*~*.zwc(N)} /etc/zsh/aliases/*~*.zwc(N); do
for i in ${ZDOTDIR:+$ZDOTDIR/aliases/*~*.zwc(N)} /etc/zsh/aliases/*~*.zwc(N); do
. $i
done