mirror of
https://github.com/archlinux/aur.git
synced 2025-12-10 08:05:42 +01:00
13 lines
490 B
Bash
13 lines
490 B
Bash
#!/bin/bash
|
|
|
|
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
|
|
|
|
# Allow users to override command-line options
|
|
if [[ -f $XDG_CONFIG_HOME/code-insiders-flags.conf ]]; then
|
|
CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-insiders-flags.conf | tr '\n' ' ')"
|
|
elif [[ -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-insiders/bin/code-insiders "$@" $CODE_USER_FLAGS
|