Skip to content

Instantly share code, notes, and snippets.

View KnorpelSenf's full-sized avatar

KnorpelSenf KnorpelSenf

View GitHub Profile
@KnorpelSenf
KnorpelSenf / code-c.sh
Last active December 10, 2025 12:12
Open VS Code Devcontainer From Command Line
code() {
# Detect WSL
__code_is_wsl=0
if [ -n "$WSL_DISTRO_NAME" ] || grep -qi microsoft /proc/version 2>/dev/null; then
__code_is_wsl=1
fi
# Check for required external commands
for __code_dep in code realpath xxd; do
if ! command -v "$__code_dep" >/dev/null 2>&1; then