From f8c0dd23f060de418c293fa203c69c649ab476e0 Mon Sep 17 00:00:00 2001 From: harrhp <> Date: Fri, 5 Jul 2024 00:05:31 +0000 Subject: [PATCH] pwsh config --- src/aliae/devcontainer-feature.json | 2 +- src/common/devcontainer-feature.json | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/aliae/devcontainer-feature.json b/src/aliae/devcontainer-feature.json index 1116a51..3bfe645 100644 --- a/src/aliae/devcontainer-feature.json +++ b/src/aliae/devcontainer-feature.json @@ -14,4 +14,4 @@ "type": "string" } } -} +} \ No newline at end of file diff --git a/src/common/devcontainer-feature.json b/src/common/devcontainer-feature.json index cb8a50e..92047f4 100644 --- a/src/common/devcontainer-feature.json +++ b/src/common/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "common", "id": "common", - "version": "1.0.0", + "version": "1.1.0", "description": "Common tools and settings", "documentationURL": "https://github.com/harrhp/devcontainer-features/tree/HEAD/src/common", "options": {}, @@ -10,12 +10,27 @@ "ghcr.io/harrhp/devcontainer-features/oh-my-posh:1": {}, "ghcr.io/devcontainers/features/powershell:1": {} }, + "mounts": [ + { + "source": "${devcontainerId}-pwsh-history", + "target": "/home/vscode/.local/share/powershell/PSReadLine", + "type": "volume" + } + ], + "postStartCommand": "sudo chown -R $USER:$USER $HOME/.local", "customizations": { "vscode": { "settings": { "editor.formatOnSave": true, "editor.formatOnSaveMode": "file", - "editor.formatOnType": true + "editor.formatOnType": true, + "terminal.integrated.automationProfile.linux": { + "path": "pwsh", + "args": [ + "-NoProfile", + "-NonInteractive" + ] + } }, "extensions": [ "editorconfig.editorconfig",