Обновление ohmyzsh
This commit is contained in:
@@ -1,8 +1,27 @@
|
||||
# VScode zsh plugin
|
||||
# author: https://github.com/MarsiBarsi
|
||||
# VS Code (stable / insiders) / VSCodium zsh plugin
|
||||
# Authors:
|
||||
# https://github.com/MarsiBarsi (original author)
|
||||
# https://github.com/babakks
|
||||
# https://github.com/SteelShot
|
||||
|
||||
# Use main Visual Studio Code version by default
|
||||
: ${VSCODE:=code}
|
||||
# Verify if any manual user choice of VS Code exists first.
|
||||
if [[ -n "$VSCODE" ]] && ! which $VSCODE &>/dev/null; then
|
||||
echo "'$VSCODE' flavour of VS Code not detected."
|
||||
unset VSCODE
|
||||
fi
|
||||
|
||||
# Otherwise, try to detect a flavour of VS Code.
|
||||
if [[ -z "$VSCODE" ]]; then
|
||||
if which code &>/dev/null; then
|
||||
VSCODE=code
|
||||
elif which code-insiders &>/dev/null; then
|
||||
VSCODE=code-insiders
|
||||
elif which codium &>/dev/null; then
|
||||
VSCODE=codium
|
||||
else
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
alias vsc="$VSCODE ."
|
||||
alias vsca="$VSCODE --add"
|
||||
|
||||
Reference in New Issue
Block a user