mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
optimize usage
This commit is contained in:
parent
adaefebf35
commit
4ed23ee299
4 changed files with 50 additions and 6 deletions
|
|
@ -360,8 +360,9 @@ setup_zshrc() {
|
|||
fi
|
||||
omz=$(echo "$omz" | sed "s|^$HOME/|\$HOME/|")
|
||||
|
||||
sed "s|^export ZSH=.*$|export ZSH=\"${omz}\"|" "$ZSH/templates/zshrc.zsh-template" > "$zdot/.zshrc-omztemp"
|
||||
mv -f "$zdot/.zshrc-omztemp" "$zdot/.zshrc"
|
||||
# sed "s|^export ZSH=.*$|export ZSH=\"${omz}\"|" "$ZSH/templates/zshrc.zsh-template" > "$zdot/.zshrc-omztemp"
|
||||
# mv -f "$zdot/.zshrc-omztemp" "$zdot/.zshrc"
|
||||
ln -sf "$ZSH/templates/zshrc.zsh-template" "$zdot/.zshrc"
|
||||
|
||||
echo
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue