mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-07 07:50:40 +01:00
feat(vscode): allow arguments to vsc alias (#11903)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
committed by
GitHub
parent
96c976637a
commit
d3112d67a3
@@ -23,7 +23,14 @@ if [[ -z "$VSCODE" ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
alias vsc="$VSCODE ."
|
||||
function vsc {
|
||||
if (( $# )); then
|
||||
$VSCODE $@
|
||||
else
|
||||
$VSCODE .
|
||||
fi
|
||||
}
|
||||
|
||||
alias vsca="$VSCODE --add"
|
||||
alias vscd="$VSCODE --diff"
|
||||
alias vscg="$VSCODE --goto"
|
||||
|
||||
Reference in New Issue
Block a user