mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Fix install.sh for non-GNU sed
Removed -i option from sed invocations for enhanced compatibility with eg BSD sed
This commit is contained in:
parent
a207a38d63
commit
5659e7cce9
1 changed files with 4 additions and 4 deletions
|
|
@ -23,14 +23,14 @@ fi
|
||||||
|
|
||||||
echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m"
|
echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m"
|
||||||
cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
|
cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
|
||||||
sed -i -e "/^export ZSH=/ c\\
|
cat ~/.zshrc | sed -e "/^export ZSH=/ c\\
|
||||||
export ZSH=$ZSH
|
export ZSH=$ZSH
|
||||||
" ~/.zshrc
|
" > ~/.zshrc
|
||||||
|
|
||||||
echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
|
echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
|
||||||
sed -i -e "/export PATH=/ c\\
|
cat ~/.zshrc | sed -e "/export PATH=/ c\\
|
||||||
export PATH=\"$PATH\"
|
export PATH=\"$PATH\"
|
||||||
" ~/.zshrc
|
" > ~/.zshrc
|
||||||
|
|
||||||
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
|
TEST_CURRENT_SHELL=$(expr "$SHELL" : '.*/\(.*\)')
|
||||||
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
|
if [ "$TEST_CURRENT_SHELL" != "zsh" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue