From ccf833474ec2da2751e1ac04283a292f95dc1ff3 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Fri, 2 Apr 2021 06:07:11 +0200 Subject: [PATCH] Update scripts --- script/installpackages | 2 ++ script/installvimplugins | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/script/installpackages b/script/installpackages index f57a88e..afa405f 100755 --- a/script/installpackages +++ b/script/installpackages @@ -12,6 +12,8 @@ pacman -S --needed base-devel \ exa \ fzf \ tmux \ + ripgrep \ + bat \ ttf-ubuntu-font-family # Ubuntu Mono font for Alacritty # https://rustup.rs/ diff --git a/script/installvimplugins b/script/installvimplugins index a369634..7d342de 100755 --- a/script/installvimplugins +++ b/script/installvimplugins @@ -4,7 +4,7 @@ set -e # Special case for fzf.vim plugin file: -# Note: not currently updated automatically +# Note: not currently updated automatically by `updatevimplugins` url="https://raw.githubusercontent.com/junegunn/fzf/master/plugin/fzf.vim" echo "Fetching $url..." mkdir -p $HOME/.vim/plugin @@ -18,6 +18,11 @@ mkdir -p $pluginhome cd $pluginhome grep packadd! $HOME/.vimrc | grep -oP 'https.*$' | while read -r url ; do - echo "Cloning $url.." - git clone --quiet --depth=1 "$url" + dirname=$(basename $url .git) + if [ -d "$dirname" ]; then + echo "Exists: $dirname" + else + echo "Cloning $url.." + git clone --quiet --depth=1 "$url" + fi done