This commit is contained in:
thucpham 2025-04-23 23:42:14 +02:00
parent 2a3d55afab
commit 7e78123087

View File

@ -6,7 +6,7 @@ sudo apt install zsh
chsh -s /bin/zsh
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
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
# sudo apt install fzf
# if fzf installed through apt is < 0.48