From 9c35b42d77110b0a2dcbf4f72de01427b2f2f5bd Mon Sep 17 00:00:00 2001 From: alvinlollo <143326475+alvinlollo@users.noreply.github.com> Date: Thu, 30 Jan 2025 15:31:45 +1100 Subject: [PATCH] Update install.sh --- install.sh | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index da13ea6..091f832 100755 --- a/install.sh +++ b/install.sh @@ -64,27 +64,23 @@ touch ~/.zshrc echo "$(curl https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/.zshrc)" >> ~/.zshrc # [zsh-history-substring-search](https://github.com/zsh-users/zsh-history-substring-search) -if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search ] -then +if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-history-substring-search ]; then git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search fi # [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) -if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ] -then +if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions ];then git clone https://github.com/zsh-users/zsh-autosuggestions "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" fi # [zsh-eza](https://github.com/z-shell/zsh-eza) -if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-eza ] -then +if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-eza ]; then git clone https://github.com/z-shell/zsh-eza.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-eza fi # [fzf-zsh-plugin](https://github.com/unixorn/fzf-zsh-plugin) -if [ ! -d ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin ] -then -git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin +if [ ! -d ~/.oh-my-zsh/custom/plugins/fzf-zsh-plugin ]; then + git clone --depth 1 https://github.com/unixorn/fzf-zsh-plugin.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-zsh-plugin fi # Setup fzf