Set default editor globally

This commit is contained in:
RealStickman 2023-05-01 12:40:18 +02:00
parent 93d66ba04d
commit 87597fd9ed
3 changed files with 9 additions and 5 deletions

View File

@ -29,7 +29,13 @@ in
# Enable completions by nix
programs.fish.enable = true;
environment.shells = [ pkgs.fish ];
environment = {
shells = [ pkgs.fish ];
variables = {
EDITOR = "nvim";
VISUAL = "nvim";
};
};
networking.hostName = "${hostname}"; # Define your hostname.
# Pick only one of the below networking options.

View File

@ -77,8 +77,6 @@ in
# user environment variables
sessionVariables = {
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent.socket";
EDITOR = "nvim";
VISUAL = "nvim";
};
};

View File

@ -34,5 +34,5 @@ set fish_color_cwd yellow
set SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket"
export SSH_AUTH_SOCK
# text editor
set EDITOR nvim
set VISUAL nvim
#set EDITOR nvim
#set VISUAL nvim