Add guardrails and remove gdoc.vim

This commit is contained in:
alvinlollo
2026-01-21 14:51:50 -08:00
parent e98df34f7c
commit fd6f3f5b37
2 changed files with 17 additions and 6 deletions
+11 -6
View File
@@ -1,9 +1,15 @@
# Install prerequisetes # Install prerequisetes
if command -v pacman </dev/null; then
echo "Cannot proceed: Not a arch based system"
echo "This script does not have debian support"
exit
fi
sudo pacman -S --needed --noconfirm git curl wget python3 python-pip sudo pacman -S --needed --noconfirm git curl wget python3 python-pip
# Show nvim config replacement # Show nvim config replacement
echo 'This script will move your old nvim config to ~/.local/share/nvim.bak' echo 'This script will move your current nvim config to ~/.config/nvim.bak'
sleep 20 && echo "Use CTRL+C within 20 secconds if you don't want these actions to be made" echo "Press CTRL+C within 20 secconds if you don't want these actions to be made"
sleep 20
# Remove old backups # Remove old backups
if [ -e "~/.config/nvim.bak" ]; then if [ -e "~/.config/nvim.bak" ]; then
@@ -41,7 +47,6 @@ cp ~/.cache/nvim{,.bak} -r
git clone https://github.com/alvinlollo/LazyVim ~/.config/nvim git clone https://github.com/alvinlollo/LazyVim ~/.config/nvim
# Dependencys for Gdoc.vim # Dependencys for Gdoc.vim
wget https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/requirements.txt #wget https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/requirements.txt
pip3 install -r requirements.txt --break-system-packages && rm requirements.txt #pip3 install -r requirements.txt --break-system-packages && rm requirements.txt
#echo "pip3 install -r requirements.txt"
echo "pip3 install -r requirements.txt"
+6
View File
@@ -120,6 +120,12 @@ for selection in $CHOICE; do
;; ;;
"4") "4")
echo "Installing Pacman Packages..." echo "Installing Pacman Packages..."
# Check if pacman binary is installed
if command -v pacman </dev/null; then
echo "Cannot proceed: Not a arch based system"
exit
fi
# Install pacman packages
if ! curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/PackagesPacman.txt | sudo pacman -S - --needed --noconfirm; then if ! curl -fsSL https://raw.githubusercontent.com/alvinlollo/Single-install-script/refs/heads/main/configs/PackagesPacman.txt | sudo pacman -S - --needed --noconfirm; then
echo "--------------------------------------------------------------------" echo "--------------------------------------------------------------------"
echo "Failed to install Pacman packages. You can try running it manually:" echo "Failed to install Pacman packages. You can try running it manually:"