Skip to content

Commit

Permalink
Make vscode as the default editor in macOS again
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Oct 31, 2024
1 parent 4f2e57b commit 946f378
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions home-manager/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ lib.mkMerge [
(lib.mkIf pkgs.stdenv.isDarwin {
home = {
sessionVariables = {
# * Do not specify Nix store path for zed in macOS
# https://github.com/NixOS/nixpkgs/blob/bba8dffd3135f35810e9112c40ee621f4ede7cca/pkgs/by-name/ze/zed-editor/package.nix#L217-L219
# * Do not specify Nix store path for zed and vscode in macOS
# * zed is broken https://github.com/NixOS/nixpkgs/blob/bba8dffd3135f35810e9112c40ee621f4ede7cca/pkgs/by-name/ze/zed-editor/package.nix#L217-L219
# * vscode is unfree and heavy when no binary cache
# * `cli: install` action installs into this path in macOS
VISUAL = "zed --wait";
VISUAL = "code --wait";

BROWSER = "open";
};
Expand Down

0 comments on commit 946f378

Please sign in to comment.