1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-30 19:58:17 +01:00
zinit-configs/brucebentley/.zshenv
2020-04-16 14:59:43 +02:00

20 lines
522 B
Bash

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# .zshenv
#
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
local dotdir="$HOME/.config/zsh"
if [[ ! -f "$dotdir/.zshrc" ]] && [[ -f "$dotdir/zshrc" ]]; then
(
cd "$dotdir" || exit;
for f in *; do
ln -s "$PWD/$f" "$PWD/.$f"
done
rm -rf .pkg .zsh
)
elif [[ -f "$dotdir/.zshrc" ]]; then
ZDOTDIR="$dotdir"
else
echo 'no zshrc' > $HOME/nozshrc
fi