1 # VS Code (stable / insiders) / VSCodium zsh plugin
3 # https://github.com/MarsiBarsi (original author)
4 # https://github.com/babakks
5 # https://github.com/SteelShot
7 # Verify if any manual user choice of VS Code exists first.
8 if [[ -n "$VSCODE" ]] && ! which $VSCODE &>/dev/null; then
9 echo "'$VSCODE' flavour of VS Code not detected."
13 # Otherwise, try to detect a flavour of VS Code.
14 if [[ -z "$VSCODE" ]]; then
15 if which code &>/dev/null; then
17 elif which code-insiders &>/dev/null; then
19 elif which codium &>/dev/null; then
27 alias vsca="$VSCODE --add"
28 alias vscd="$VSCODE --diff"
29 alias vscg="$VSCODE --goto"
30 alias vscn="$VSCODE --new-window"
31 alias vscr="$VSCODE --reuse-window"
32 alias vscw="$VSCODE --wait"
33 alias vscu="$VSCODE --user-data-dir"
35 alias vsced="$VSCODE --extensions-dir"
36 alias vscie="$VSCODE --install-extension"
37 alias vscue="$VSCODE --uninstall-extension"
39 alias vscv="$VSCODE --verbose"
40 alias vscl="$VSCODE --log"
41 alias vscde="$VSCODE --disable-extensions"