Set default editor globally
This commit is contained in:
parent
430cc53cdf
commit
d37f9c5854
@ -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.
|
||||
|
@ -77,8 +77,6 @@ in
|
||||
# user environment variables
|
||||
sessionVariables = {
|
||||
SSH_AUTH_SOCK = "/run/user/1000/ssh-agent.socket";
|
||||
EDITOR = "nvim";
|
||||
VISUAL = "nvim";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user