#!/bin/bash
indicator="set clipboard";
configFile="/etc/vimrc";

if ! grep "\b$indicator\b" "$configFile" > /dev/null
then
    # As described in https://wiki.archlinux.org/title/Vim#Clipboard
    echo "$indicator+=unnamed,unnamedplus" | sudo tee /etc/vimrc > /dev/null;
fi;