Update scripts

This commit is contained in:
Rob Watson 2021-04-02 06:28:00 +02:00
parent ccf833474e
commit 3c4d06d5d7
3 changed files with 20 additions and 0 deletions

17
script/cleanvimplugins Executable file
View File

@ -0,0 +1,17 @@
#/usr/bin/env bash
#
# Check vim plugins dir for unused plugins
# Note: does not perform deletion at this time, pipe output to bash.
set -e
pluginhome=$HOME/.vim/pack/git-plugins/opt
cd $pluginhome
find . -mindepth 1 -maxdepth 1 -type d -print0 | while read -d $'\0' pluginpath
do
if ! grep -q "$pluginpath" $HOME/.vimrc ; then
basename=$(basename $pluginpath)
echo "rm -rf $pluginhome/$basename"
fi
done

View File

@ -14,6 +14,8 @@ pacman -S --needed base-devel \
tmux \ tmux \
ripgrep \ ripgrep \
bat \ bat \
docker \
docker-compose \
ttf-ubuntu-font-family # Ubuntu Mono font for Alacritty ttf-ubuntu-font-family # Ubuntu Mono font for Alacritty
# https://rustup.rs/ # https://rustup.rs/

View File

@ -1,6 +1,7 @@
#/usr/bin/env bash #/usr/bin/env bash
# #
# Update vim plugins in $HOME/.vim/pack/git-plugins/opt # Update vim plugins in $HOME/.vim/pack/git-plugins/opt
set -e set -e
pluginhome=$HOME/.vim/pack/git-plugins pluginhome=$HOME/.vim/pack/git-plugins