diff options
| -rw-r--r-- | zsh/env | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,8 +1,7 @@ # -*- mode: shell-script -*- source_if_exists() { - local f=~/.zshenv - [[ -f ${f:A:h:h}/$1 ]] && . ${f:A:h:h}/$1 || return 0 + [[ -f ${${(%):-%x}:A:h:h}/$1 ]] && . ${${(%):-%x}:A:h:h}/$1 || return 0 } export DOMAIN=$(cut -d. -f2- -s <<<${HOST}) |
