mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Added portable sed command for OpenBSD/NetBSD
Standard sed, which is used on OpenBSD and NetBSD, doesn't have the "-i" option
This commit is contained in:
parent
7f07facf41
commit
d9e068f3f0
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"
|
||||
cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
|
||||
sed -i -e "/^ZSH=/ c\\
|
||||
sed -e "/^ZSH=/ c\\
|
||||
ZSH=$ZSH
|
||||
" ~/.zshrc
|
||||
" ~/.zshrc | tee ~/.zshrc
|
||||
|
||||
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\\
|
||||
sed -e "/export PATH=/ c\\
|
||||
export PATH=\"$PATH\"
|
||||
" ~/.zshrc
|
||||
" ~/.zshrc | tee ~/.zshrc
|
||||
|
||||
if [ "$SHELL" != "$(which zsh)" ]; then
|
||||
echo "\033[0;34mTime to change your default shell to zsh!\033[0m"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue