2024-07-15 10:10:06 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
2024-11-01 12:12:16 +00:00
|
|
|
source "$dir/../../../lib/software.fish"
|
2024-07-15 10:10:06 +00:00
|
|
|
|
|
|
|
function configureSW
|
|
|
|
set -l configFile /etc/vimrc
|
|
|
|
set -l indicator "set clipboard"
|
|
|
|
|
2024-10-06 19:25:34 +00:00
|
|
|
if not grep "\b$indicator\b" "$configFile" >/dev/null
|
2024-07-15 10:10:06 +00:00
|
|
|
# As described in https://wiki.archlinux.org/title/Vim#Clipboard
|
2024-10-06 19:25:34 +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
|