Usage:
chmod +x code_attach
code_attach <container_name> <path> <docker_context>
- container_name: name of the running container
# venv | |
function deactivate_venv() { | |
parentdir=$(dirname "${VIRTUAL_ENV}") | |
if [[ "$PWD"/ != "$parentdir"/* && -n "$(command -v deactivate)" ]] ; then | |
echo "Deactivating ${VIRTUAL_ENV}" | |
deactivate | |
activate_venv | |
fi | |
} | |
function activate_venv() { |
nslookup
PS C:\Users\niderhof> nslookup
Standardserver: S4DE4ZSYDIEE123.abc-sa.xxxxx.xyz
Address: 66.66.666.66 <--------
that is the nameserver you want WSL to use also.
#!/bin/bash | |
SESSIONNAME="niid" | |
STARTDIR="/home/niid/Documents/Projects" | |
tmux has-session -t apr &> /dev/null | |
if [ $? != 0 ] | |
then | |
tmux new-session -s $SESSIONNAME -c $STARTDIR/TCM -n "jptr" -d | |
tmux send-keys -t $SESSIONNAME:0 "source activate TCM" C-m |