Skip to content

Instantly share code, notes, and snippets.

View IMalaniak's full-sized avatar

Ivan Malaniak IMalaniak

View GitHub Profile
@IMalaniak
IMalaniak / code-open-workspace.sh
Created August 4, 2022 16:06
Alias for opening a VS Code workspace in the current folder
# add this script to your `.zshrc`
vspace() {
vsworkfolder=$(find . -maxdepth 1 -type f -name '*.code-workspace')
if [ -z "$vsworkfolder" ]; then
echo "No workspace found"
else
code "$vsworkfolder"
fi
}