Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
at non-nixpkgs/termux 23 lines 552 B view raw
1#!/usr/bin/env bash 2 3_vscode_cli_path_detection=$(command -v code) 4VSCODE_CLI_PATH=${VSCODE_CLI_PATH:-$_vscode_cli_path_detection} 5PARAMS="$*" 6 7error() { 8 echo "error: $*" 9} 10 11if [[ "$VSCODE_CLI_PATH" == "" ]]; then 12 error VS Code CLI is not installed or is not on PATH yet, see 13 error https://code.visualstudio.com/docs/remote/tunnels for setup instructions 14 exit 1 15fi 16 17if [[ $PARAMS == "" ]]; then 18 echo "running code tunnel directly" 19 exec code tunnel 20fi 21 22echo "passing params to 'code tunnel': $PARAMS" 23exec code --verbose tunnel $PARAMS