馃敡 Where my dotfiles lives in harmony and peace, most of the time
1#!/usr/bin/env bash
2set -euo pipefail
3
4DOTFILES=$(dirname "$(dirname "$(realpath "$0")")")
5CODE_CONFIG_DIR="${HOME}/.config/Code/User"
6CODE_FLAGS_PATH="${HOME}/.config/code-flags.conf"
7
8paru -S --needed --noconfirm visual-studio-code-bin
9
10mkdir -p "${CODE_CONFIG_DIR}"
11
12ln -snf "${DOTFILES}/code/settings.json" "${CODE_CONFIG_DIR}/settings.json"
13ln -snf "${DOTFILES}/code/keybindings.json" "${CODE_CONFIG_DIR}/keybindings.json"
14ln -snf "${DOTFILES}/code/tasks.json" "${CODE_CONFIG_DIR}/tasks.json"
15ln -snf "${DOTFILES}/code/code-flags.conf" "${CODE_FLAGS_PATH}"