mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-24 15:21:06 +01:00
12 lines
316 B
Text
12 lines
316 B
Text
|
#!/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 | tr '\n' ' ')"
|
||
|
fi
|
||
|
|
||
|
# Launch
|
||
|
exec /opt/visual-studio-code/bin/code "$@" $CODE_USER_FLAGS
|