vscode.plugin.zsh 826 Bytes
Newer Older
1
# VScode zsh plugin
2
3
4
# Authors:
#   https://github.com/MarsiBarsi (original author)
#   https://github.com/babakks
5

6
7
8
9
10
11
12
# 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
13

14
# Define aliases
15
16
17
18
19
20
21
22
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"
23

24
25
26
27
28
29
30
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"