psoxizsh/fresh-system

19 lines
399 B
Bash
Executable file

#! /bin/zsh
(
cd ~
[[ ! -e ~/.zshrc ]] && touch ~/.zshrc
install -v -m 0700 -d ~/.ssh
grep -E '^source (/etc/psoxizsh|~/.psoxizsh)/zshrc' ~/.zshrc 2>/dev/null >/dev/null
if [[ $? -ne 0 ]]
then
if [[ -d ~/.psoxizsh ]]
then
echo 'source ~/.psoxizsh/zshrc' >>~/.zshrc
elif [[ -d /etc/psoxizsh ]]
then
echo 'source /etc/psoxizsh/zshrc' >>~/.zshrc
fi
fi
)