vscode: integrate rebuild script with vscode
This commit is contained in:
parent
75ef02c518
commit
e68528df79
2 changed files with 23 additions and 0 deletions
21
.vscode/tasks.json
vendored
Normal file
21
.vscode/tasks.json
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Rebuild",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "./scripts/rebuild.sh",
|
||||||
|
"presentation": {
|
||||||
|
"reveal": "always",
|
||||||
|
"panel": "new",
|
||||||
|
"focus": true,
|
||||||
|
"showReuseMessage": false
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
2
scripts/rebuild.sh
Executable file
2
scripts/rebuild.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#! /bin/sh
|
||||||
|
sudo nixos-rebuild switch --flake .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue