Skip to content

Commit

Permalink
Update code.sh to use new VSCode shell profiles for integrated terminal.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbssousa authored and owtaylor committed Mar 9, 2022
1 parent 43662e7 commit 39e3881
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
25 changes: 15 additions & 10 deletions code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -383,16 +383,21 @@ if $toolbox_reset_configuration || [ ! -f $settings ] ; then
{
"remote.containers.copyGitConfig": false,
"remote.containers.gitCredentialHelperConfigLocation": "none",
"terminal.integrated.shell.linux": "/usr/sbin/capsh",
"terminal.integrated.shellArgs.linux": [
"--caps=",
"--",
"-c",
"exec \"\$@\"",
"/bin/sh",
"$SHELL",
"-l"
]
"terminal.integrated.defaultProfile.linux": "toolbox",
"terminal.integrated.profiles.linux": {
"toolbox": {
"path": "/usr/sbin/capsh",
"args": [
"--caps=",
"--",
"-c",
"exec \"\$@\"",
"/bin/sh",
"$SHELL",
"-l"
]
}
}
}
EOF
fi
Expand Down
25 changes: 15 additions & 10 deletions tests/test-basic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,21 @@ EOF
{
"remote.containers.copyGitConfig": false,
"remote.containers.gitCredentialHelperConfigLocation": "none",
"terminal.integrated.shell.linux": "/usr/sbin/capsh",
"terminal.integrated.shellArgs.linux": [
"--caps=",
"--",
"-c",
"exec \"$@\"",
"/bin/sh",
"/bin/bash",
"-l"
]
"terminal.integrated.defaultProfile.linux": "toolbox",
"terminal.integrated.profiles.linux": {
"toolbox": {
"path": "/usr/sbin/capsh",
"args": [
"--caps=",
"--",
"-c",
"exec \"$@\"",
"/bin/sh",
"/bin/bash",
"-l"
]
}
}
}
EOF

Expand Down

0 comments on commit 39e3881

Please sign in to comment.