vscode.plugin.zsh 826 B

123456789101112131415161718192021222324252627282930
  1. # VScode zsh plugin
  2. # Authors:
  3. # https://github.com/MarsiBarsi (original author)
  4. # https://github.com/babakks
  5. # Use the stable VS Code release, unless the Insiders version is the only
  6. # available installation
  7. if ! which code > /dev/null && which code-insiders > /dev/null; then
  8. : ${VSCODE:=code-insiders}
  9. else
  10. : ${VSCODE:=code}
  11. fi
  12. # Define aliases
  13. alias vsc="$VSCODE ."
  14. alias vsca="$VSCODE --add"
  15. alias vscd="$VSCODE --diff"
  16. alias vscg="$VSCODE --goto"
  17. alias vscn="$VSCODE --new-window"
  18. alias vscr="$VSCODE --reuse-window"
  19. alias vscw="$VSCODE --wait"
  20. alias vscu="$VSCODE --user-data-dir"
  21. alias vsced="$VSCODE --extensions-dir"
  22. alias vscie="$VSCODE --install-extension"
  23. alias vscue="$VSCODE --uninstall-extension"
  24. alias vscv="$VSCODE --verbose"
  25. alias vscl="$VSCODE --log"
  26. alias vscde="$VSCODE --disable-extensions"