Skip to content

Commit

Permalink
refactor: Move $EDITOR definition to shared/default.nix
Browse files Browse the repository at this point in the history
Remove `$EDITOR` definition from `shells/zsh.nix`, set as
`environment.variables` in `shared/default.nix`. This sets the var
globally.
  • Loading branch information
AVGVSTVS96 committed Nov 17, 2024
1 parent 13eb9d8 commit b48c0da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions modules/shared/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@
description = "Currently active shell";
};
};

config = {
# TODO: Find a better place to put this
environment.variables.EDITOR = "nvim";
};
}
2 changes: 0 additions & 2 deletions modules/shared/shells/fish.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ in
shellAbbrs = {
# General aliases
g = "git";
zrc = "nvim ~/.zshrc";
szrc = "source ~/.zshrc";
exz = "exec zsh";
cl = "clear";
yz = "yazi";
Expand Down
4 changes: 0 additions & 4 deletions modules/shared/shells/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ in
shellAliases = {
# General aliases
g = "git";
zrc = "nvim ~/.zshrc";
szrc = "source ~/.zshrc";
exz = "exec zsh";
cl = "clear";
yz = "yazi";
Expand Down Expand Up @@ -93,8 +91,6 @@ in
# Remove history data we don't want to see
export HISTIGNORE="pwd:ls:cd"
export EDITOR=nvim
'';
};

Expand Down

0 comments on commit b48c0da

Please sign in to comment.