fix sed
This commit is contained in:
parent
2a3d55afab
commit
7e78123087
2
tips.md
2
tips.md
@ -6,7 +6,7 @@ sudo apt install zsh
|
|||||||
chsh -s /bin/zsh
|
chsh -s /bin/zsh
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
sed -i '/^plugins=/c\plugins=(git\n zsh-autosuggestions\n )' ~/.zshrc
|
sed -i '/^plugins=(/{:a;N;/)/!ba;s/^plugins=(.*\n)*.*)/plugins=(\n git\n)/}' ~/.zshrc
|
||||||
# if fzf installed through apt is > 0.48
|
# if fzf installed through apt is > 0.48
|
||||||
# sudo apt install fzf
|
# sudo apt install fzf
|
||||||
# if fzf installed through apt is < 0.48
|
# if fzf installed through apt is < 0.48
|
||||||
|
Loading…
Reference in New Issue
Block a user