Skip to content

Instantly share code, notes, and snippets.

@jswhisperer
Created October 16, 2024 17:11
Show Gist options
  • Save jswhisperer/e2deb16554909de71ce660ddbe2577e4 to your computer and use it in GitHub Desktop.
Save jswhisperer/e2deb16554909de71ce660ddbe2577e4 to your computer and use it in GitHub Desktop.
open a terminal by default
{
"version": "2.0.0",
"presentation": {
"echo": false,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true
},
"tasks": [
{
"label": "Create terminal",
"dependsOn": ["First"],
// Mark as the default build task so cmd/ctrl+shift+b will create them
"group": {
"kind": "build",
"isDefault": true
},
// Try start the task on folder open
"runOptions": {
"runOn": "folderOpen"
}
},
{
// The name that shows up in terminal tab
"label": "Terminal",
// The task will launch a shell
"type": "shell",
"command": "zsh",
// Set the shell type
"options": {
"shell": {
"executable": "",
"args": []
}
},
// Mark as a background task to avoid the spinner animation on the terminal tab
"isBackground": true,
"problemMatcher": [],
// Create the tasks in a terminal group
"presentation": {
"group": "my-group"
}
}
]
}
@jswhisperer
Copy link
Author

Based a little bit off of this and sa lot more reading https://code.visualstudio.com/docs/terminal/profiles edit zsh to your preference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment