Skip to content

Commit 9e69a9b

Browse files
author
rnbsovstudy
committed
🍍 chore: Add setting an alias for
Changelog: chore
1 parent d9b68f5 commit 9e69a9b

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.idx/dev.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99
pkgs.unzip
1010
];
1111
# Sets environment variables in the workspace
12-
env = {};
12+
env = { };
1313
idx = {
1414
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
1515
extensions = [
1616
"Dart-Code.flutter"
1717
"Dart-Code.dart-code"
1818
];
1919
workspace = {
20+
onStart = {
21+
set-cm-alias = "echo \"alias cm='better-commits'\" >> ~/.bashrc";
22+
};
2023
# Runs when a workspace is first created with this `dev.nix` file
2124
onCreate = {
2225
install-better-commits = "npm i -g better-commits";
@@ -42,19 +45,19 @@
4245
# flutter build web --profile --dart-define=Dart2jsOptimization=O0
4346
'';
4447
};
45-
48+
4649
# To run something each time the workspace is (re)started, use the `onStart` hook
4750
};
4851
# Enable previews and customize configuration
4952
previews = {
5053
enable = true;
5154
previews = {
5255
web = {
53-
command = ["flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT"];
56+
command = [ "flutter" "run" "--machine" "-d" "web-server" "--web-hostname" "0.0.0.0" "--web-port" "$PORT" ];
5457
manager = "flutter";
5558
};
5659
android = {
57-
command = ["flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555"];
60+
command = [ "flutter" "run" "--machine" "-d" "android" "-d" "localhost:5555" ];
5861
manager = "flutter";
5962
};
6063
};

0 commit comments

Comments
 (0)