Something went wrong. Try again.
Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
Something went wrong. Try again.
552 B · 23 lines
at nixpkgs/base
1234567891011121314151617181920212223#!/usr/bin/env bash
_vscode_cli_path_detection=$(command -v code)VSCODE_CLI_PATH=${VSCODE_CLI_PATH:-$_vscode_cli_path_detection}PARAMS="$*"
error() { echo "error: $*"}
if [[ "$VSCODE_CLI_PATH" == "" ]]; then error VS Code CLI is not installed or is not on PATH yet, see error https://code.visualstudio.com/docs/remote/tunnels for setup instructions exit 1fi
if [[ $PARAMS == "" ]]; then echo "running code tunnel directly" exec code tunnelfi
echo "passing params to 'code tunnel': $PARAMS"exec code --verbose tunnel $PARAMS