fixed freshsystem
This commit is contained in:
parent
af1647785f
commit
4e821c3ad5
|
@ -1,16 +1,17 @@
|
||||||
#! /bin/sh
|
#! /bin/zsh
|
||||||
|
|
||||||
(
|
(
|
||||||
cd ~
|
cd ~
|
||||||
|
[[ ! -e ~/.zshrc ]] && touch ~/.zshrc
|
||||||
install -v --mode=700 -d ~/.ssh
|
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
|
then
|
||||||
if [[ -d ~/.psoxizsh ]]
|
if [[ -d ~/.psoxizsh ]]
|
||||||
then
|
then
|
||||||
echo 'source ~/.psoxizsh/zshrc' >>~/.zshrc
|
echo 'source ~/.psoxizsh/zshrc' >>~/.zshrc
|
||||||
elif [[ -d /etc/psoxizsh ]]
|
elif [[ -d /etc/psoxizsh ]]
|
||||||
then
|
then
|
||||||
echo 'source ~/.psoxizsh/zshrc' >>~/.zshrc
|
echo 'source /etc/psoxizsh/zshrc' >>~/.zshrc
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue