Package essential software
This commit is contained in:
parent
ed065e6991
commit
8d1c754106
7 changed files with 178 additions and 1 deletions
scripts/Common/Software/vim
21
scripts/Common/Software/vim/main.fish
Normal file
21
scripts/Common/Software/vim/main.fish
Normal file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/env fish
|
||||
begin
|
||||
set -l dir (status dirname)
|
||||
source "$dir/../../Scripts/software.fish"
|
||||
|
||||
function installSW
|
||||
configureSW
|
||||
end
|
||||
|
||||
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
|
||||
echo "$indicator+=unnamed,unnamedplus" | sudo tee "$configFile" > /dev/null;
|
||||
end
|
||||
end
|
||||
|
||||
runInstaller $argv
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue