2018-07-03 17:45:42 +02:00
|
|
|
# VScode zsh plugin
|
2020-01-29 13:51:40 +01:00
|
|
|
# Authors:
|
|
|
|
# https://github.com/MarsiBarsi (original author)
|
|
|
|
# https://github.com/babakks
|
2018-07-03 17:45:42 +02:00
|
|
|
|
2020-01-29 13:51:40 +01:00
|
|
|
# Use the stable VS Code release, unless the Insiders version is the only
|
|
|
|
# available installation
|
|
|
|
if ! which code > /dev/null && which code-insiders > /dev/null; then
|
|
|
|
: ${VSCODE:=code-insiders}
|
|
|
|
else
|
|
|
|
: ${VSCODE:=code}
|
|
|
|
fi
|
2018-07-03 17:45:42 +02:00
|
|
|
|
2020-01-29 13:51:40 +01:00
|
|
|
# Define aliases
|
2019-05-08 16:32:27 +02:00
|
|
|
alias vsc="$VSCODE ."
|
|
|
|
alias vsca="$VSCODE --add"
|
|
|
|
alias vscd="$VSCODE --diff"
|
|
|
|
alias vscg="$VSCODE --goto"
|
|
|
|
alias vscn="$VSCODE --new-window"
|
|
|
|
alias vscr="$VSCODE --reuse-window"
|
|
|
|
alias vscw="$VSCODE --wait"
|
|
|
|
alias vscu="$VSCODE --user-data-dir"
|
2018-07-03 17:45:42 +02:00
|
|
|
|
2019-05-08 16:32:27 +02:00
|
|
|
alias vsced="$VSCODE --extensions-dir"
|
|
|
|
alias vscie="$VSCODE --install-extension"
|
|
|
|
alias vscue="$VSCODE --uninstall-extension"
|
|
|
|
|
|
|
|
alias vscv="$VSCODE --verbose"
|
|
|
|
alias vscl="$VSCODE --log"
|
|
|
|
alias vscde="$VSCODE --disable-extensions"
|