From 39e3881d0a782e64d3d2e67a4dae5c1368bfb988 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?La=C3=A9rcio=20de=20Sousa?= Date: Mon, 7 Mar 2022 15:03:43 -0300 Subject: [PATCH] Update code.sh to use new VSCode shell profiles for integrated terminal. --- code.sh | 25 +++++++++++++++---------- tests/test-basic.sh | 25 +++++++++++++++---------- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/code.sh b/code.sh index b9d7085..25fc745 100755 --- a/code.sh +++ b/code.sh @@ -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 diff --git a/tests/test-basic.sh b/tests/test-basic.sh index 92894bc..905435c 100644 --- a/tests/test-basic.sh +++ b/tests/test-basic.sh @@ -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