mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-05-11 05:55:17 +00:00
vscode: use insiders build if stable not found (#8568)
* 🔨 Add calling VS Code Insiders * ✏️ Update README.md
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
# VScode zsh plugin
|
||||
# author: https://github.com/MarsiBarsi
|
||||
# Authors:
|
||||
# https://github.com/MarsiBarsi (original author)
|
||||
# https://github.com/babakks
|
||||
|
||||
# Use main Visual Studio Code version by default
|
||||
: ${VSCODE:=code}
|
||||
# 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
|
||||
|
||||
# Define aliases
|
||||
alias vsc="$VSCODE ."
|
||||
alias vsca="$VSCODE --add"
|
||||
alias vscd="$VSCODE --diff"
|
||||
|
Reference in New Issue
Block a user