PortValhalla/scripts/Arch/Software/vscode/main.fish

34 lines
787 B
Fish
Raw Normal View History

#!/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
configureSW
end
2024-07-17 14:33:59 +00:00
function configureSW -V dir
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
end
end
source "$dir/../../../Common/Software/vscode/main.fish" configure
end
runInstaller $argv
end