Last active
September 26, 2023 09:15
-
-
Save csghone/96128ac6c97cd223e5d7ff9bbd052e1d to your computer and use it in GitHub Desktop.
VSCODE reconnect
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vscode_reconnect_insiders () | |
{ | |
BIN_DIR=$(ls ~/.vscode-server-insiders/cli/servers/*/server/bin/remote-cli/code-insiders -altr | awk '{print $NF}' | tail -n 1 | sed 's:.code.insiders$::') | |
export PATH=$PATH:$BIN_DIR | |
export VSCODE_IPC_HOOK_CLI=$(ls /run/user/${UID}/vscode-ipc-*.sock -ltr | awk '{print $NF}' | tail -n 1) | |
} | |
vscode_reconnect () | |
{ | |
BIN_DIR=$(ls ~/.vscode-server/cli/servers/*/server/bin/remote-cli/code -altr | awk '{print $NF}' | tail -n 1 | sed 's:.code$::') | |
export PATH=$PATH:$BIN_DIR | |
export VSCODE_IPC_HOOK_CLI=$(ls /run/user/${UID}/vscode-ipc-*.sock -ltr | awk '{print $NF}' | tail -n 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment