19 lines
402 B
Bash
Executable File
19 lines
402 B
Bash
Executable File
#! /bin/zsh
|
|
(
|
|
cd ~
|
|
[[ ! -e ~/.zshrc ]] && touch ~/.zshrc
|
|
install -v --mode=700 -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
|
|
)
|
|
|