You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# /etc/zprofile: DO NOT EDIT -- this file has been generated automatically.
# This file is read for login shells.
# Only execute this file once per shell.
if [ -n "$__ETC_ZPROFILE_SOURCED" ]; then return; fi
__ETC_ZPROFILE_SOURCED=1
${concatStringsSep"\n"zshVariables}
${config.system.build.setAliases.text}
(for both, only first and last lines are relevant)
Personally, I spend most of the time in a non-login shell, so it is a bit annoying to not have aliases defined there.
However, I'm not sure what is the most suitable recommendation, and whether you could abuse(?) zshenv for this purpose.
But I'm pretty sure it would make sense to have it consistent on the two shells.
The text was updated successfully, but these errors were encountered:
Personally, this caused quite a bit of confusion for me since Zellij seems to launch shells as interactive, non-login shells, so Home-Manager defined aliases worked as expected but Nix-Darwin defined aliases did not.
I think it makes semantically more sense to put aliases in zshrc, and that would bring consistency with NixOS and Home-Manager as well.
The content of
environment.shellAliases
is treated in a (at least) inconsistent way.For Bash, it ends up in
/etc/bashrc
:nix-darwin/modules/programs/bash/default.nix
Lines 48 to 71 in bbde06b
while for ZSH, it's put in
/etc/zprofile
:nix-darwin/modules/programs/zsh/default.nix
Lines 146 to 155 in bbde06b
(for both, only first and last lines are relevant)
Personally, I spend most of the time in a non-login shell, so it is a bit annoying to not have aliases defined there.
However, I'm not sure what is the most suitable recommendation, and whether you could abuse(?)
zshenv
for this purpose.But I'm pretty sure it would make sense to have it consistent on the two shells.
The text was updated successfully, but these errors were encountered: