summarylogtreecommitdiffstats
path: root/visual-studio-code-insiders-bin.sh
blob: ca5554c326c58e768944196e658d3ba8681f3b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
   CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf)"
fi

# Launch
exec /opt/visual-studio-code-insiders/bin/code $CODE_USER_FLAGS "$@"