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
|
|
|
|
|
|
|
configureSW
|
|
|
|
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
|
|
|
|
|
|
|
|
source "$dir/../../../Common/Software/vscode/main.fish" configure
|
|
|
|
end
|
|
|
|
|
|
|
|
runInstaller $argv
|
|
|
|
end
|