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

34 lines
810 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
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
2024-09-20 03:46:11 +00:00
end
2024-09-20 03:46:11 +00:00
function userConfig -V dir
fish "$dir/../../../Common/Software/vscode/main.fish" userConfig $argv
end
runInstaller $argv
end