2024-07-15 10:10:06 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function configureSW
|
|
|
|
set -l configFile /etc/vimrc
|
|
|
|
set -l indicator "set clipboard"
|
|
|
|
|
|
|
|
if not grep "\b$indicator\b" "$configFile" > /dev/null
|
|
|
|
# As described in https://wiki.archlinux.org/title/Vim#Clipboard
|
2024-09-26 12:59:20 +00:00
|
|
|
echo "$indicator+=unnamed,unnamedplus" | sudo tee -a "$configFile" > /dev/null;
|
2024-07-15 10:10:06 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|