diff --git a/devcontainer.json b/devcontainer.json index ca5e6c4..3f81a81 100644 --- a/devcontainer.json +++ b/devcontainer.json @@ -1,7 +1,6 @@ { "name": "Rust", "runArgs": [ - "--name=Rust", "--network=host" ], "image": "git.luke-else.co.uk/luke-else/rust-dev:latest", @@ -14,7 +13,19 @@ "editor.defaultFormatter": "rust-lang.rust-analyzer" }, "rust-analyzer.cargo.runBuildScripts": true, - "remote.autoForwardPorts": false + "remote.autoForwardPorts": false, + "terminal.integrated.profiles.linux": { + "tmux-shell": { + "path": "tmux", + "args": [ + "new-session", + "-A", + "-s", + "dev" + ] + } + }, + "terminal.integrated.defaultProfile.linux": "tmux-shell" }, "extensions": [ "ms-azuretools.vscode-docker", @@ -27,6 +38,5 @@ ] } }, - "postCreateCommand": "tmux new-session -d -s dev 'cargo fetch && zsh'", - "postStartCommand": "tmux attach-session -t dev" + "postCreateCommand": "cargo fetch" } \ No newline at end of file