-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathdevcontainer.json
More file actions
88 lines (85 loc) · 2.94 KB
/
Copy pathdevcontainer.json
File metadata and controls
88 lines (85 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// For format details, see https://containers.dev/implementors/json_reference.
// For config options, see the README at: https://github.com/devcontainers/images/tree/main/src/go
{
"name": "oh-my-posh",
"build": {
"dockerfile": "Dockerfile",
"args": {
// Update the VARIANT arg to pick a version of Go: 1, 1.26, 1.27
// Append -trixie, -bookworm or -bullseye to pin to an OS version.
"VARIANT": "2-1.27-trixie",
// Override me with your own timezone:
"TZ": "UTC",
// Use one of the "TZ database name" entries from:
// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
"NODE_VERSION": "lts/*",
//Powershell version
"PS_VERSION": "7.6.0"
}
},
"runArgs": [
"--cap-add=SYS_PTRACE",
"--security-opt",
"seccomp=unconfined",
"--security-opt",
"label=disable"
],
"containerEnv": {
"HOME": "/home/vscode"
},
"customizations": {
"vscode": {
"settings": {
"go.toolsManagement.checkForUpdates": "local",
"go.useLanguageServer": true,
"go.gopath": "/go",
"go.goroot": "/usr/local/go",
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
},
"zsh": {
"path": "zsh"
},
"fish": {
"path": "fish"
},
"tmux": {
"path": "tmux",
"icon": "terminal-tmux"
},
"pwsh": {
"path": "pwsh",
"icon": "terminal-powershell"
}
},
"terminal.integrated.defaultProfile.linux": "pwsh",
"terminal.integrated.defaultProfile.windows": "PowerShell",
"terminal.integrated.defaultProfile.osx": "pwsh",
"terminal.integrated.shellIntegration.enabled": false,
"tasks.statusbar.default.hide": true
},
"extensions": [
"bmalehorn.vscode-fish",
"davidanson.vscode-markdownlint",
"elves.elvish",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"golang.go",
"jnoortheen.xonsh",
"ms-azuretools.vscode-azurefunctions",
"ms-vscode.powershell",
"redhat.vscode-yaml",
"sumneko.lua",
"tamasfe.even-better-toml",
"yzhang.markdown-all-in-one"
]
}
},
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
// This is running the same command as the VSCode Task 'devcontainer: rebuild oh-my-posh'
// It Compiles *oh-my-posh* from this repo while **overwriting** your preinstalled stable release.'
// Ideal for getting straight into developing & testing whilst using a devcontainer
"updateContentCommand": "cd src && go build -v -buildvcs=false -o /home/vscode/bin/oh-my-posh -ldflags \"-s -w -X 'github.com/jandedobbeleer/oh-my-posh/src/build.Version=development-$(git --no-pager log -1 --pretty=%h-%s)' -extldflags '-static'\""
}