fix: add ~/
This commit is contained in:
parent
b7c5bede14
commit
fffe2b7937
@ -103,8 +103,8 @@ configure_zsh() {
|
||||
sudo apt install autojump -y
|
||||
|
||||
if ! grep -Fxq "source ~/.oh-my-zsh/custom/00-init.zsh" ~/.zshrc; then
|
||||
local line_number=$(grep -n "source \$ZSH/oh-my-zsh.sh" .zshrc | cut -d : -f 1)
|
||||
sed -i "${line_number}i source ~/.oh-my-zsh/custom/00-init.zsh\n" .zshrc
|
||||
local line_number=$(grep -n "source \$ZSH/oh-my-zsh.sh" ~/.zshrc | cut -d : -f 1)
|
||||
sed -i "${line_number}i source ~/.oh-my-zsh/custom/00-init.zsh\n" ~/.zshrc
|
||||
fi
|
||||
echo -e "\nsource ~/.zsh_user" | sudo tee -a ~/.zshrc >/dev/null
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user