2024-07-17 12:18:27 +00:00
|
|
|
#!/bin/env fish
|
|
|
|
begin
|
|
|
|
set -l dir (status dirname)
|
|
|
|
source "$dir/../../Scripts/software.fish"
|
|
|
|
|
|
|
|
function installSW
|
|
|
|
yayinst \
|
|
|
|
vscodium-bin \
|
2024-07-17 13:49:30 +00:00
|
|
|
visual-studio-code-bin (
|
|
|
|
# Trash functionality
|
|
|
|
) gvfs
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
|
2024-07-17 14:33:59 +00:00
|
|
|
function configureSW -V dir
|
2024-07-17 12:18:27 +00:00
|
|
|
set -l bins codium code
|
|
|
|
|
|
|
|
for bin in $bins
|
|
|
|
if type -q "$bin"
|
2024-07-17 14:39:03 +00:00
|
|
|
begin
|
|
|
|
set -l file "/etc/skel/.config/$bin-flags.conf"
|
|
|
|
sudo mkdir -p (dirname "$file")
|
|
|
|
echo "--touch-events" | sudo tee "$file" > /dev/null
|
|
|
|
end
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-07-20 01:27:36 +00:00
|
|
|
fish "$dir/../../../Common/Software/vscode/main.fish" configure
|
2024-07-17 12:18:27 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|