fixed freshsystem

This commit is contained in:
pSox 2018-06-14 12:08:45 +01:00
parent af1647785f
commit 4e821c3ad5
1 changed files with 5 additions and 4 deletions

View File

@ -1,16 +1,17 @@
#! /bin/sh
#! /bin/zsh
(
cd ~
[[ ! -e ~/.zshrc ]] && touch ~/.zshrc
install -v --mode=700 -d ~/.ssh
if grep -E '^source (/etc|~)/psoxizsh/zshrc' ~/.zshrc
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 ~/.psoxizsh/zshrc' >>~/.zshrc
echo 'source /etc/psoxizsh/zshrc' >>~/.zshrc
fi
fi
)