10 lines
274 B
Bash
Executable file
10 lines
274 B
Bash
Executable file
#!/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;
|