feat(vscode): allow arguments to vsc alias (#11903)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
Vyacheslav Scherbinin
2023-10-18 09:18:05 +02:00
committed by GitHub
co-authored by Carlo Sala
parent 96c976637a
commit d3112d67a3
2 changed files with 10 additions and 2 deletions
+8 -1
View File
@@ -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"