From fffe2b79370ce85585ffe297122f25ddc0e03bf1 Mon Sep 17 00:00:00 2001 From: Konano Date: Mon, 4 Dec 2023 23:45:28 +0800 Subject: [PATCH] fix: add ~/ --- init_priv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init_priv.sh b/init_priv.sh index acaf2a2..b08fee3 100755 --- a/init_priv.sh +++ b/init_priv.sh @@ -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