Move env from .zshrc_local to .zshenv
.zshenv is loaded also for non-interactive shells, which is quite useful for tokens etc
This commit is contained in:
6
migrated/.zshenv
Normal file
6
migrated/.zshenv
Normal file
@@ -0,0 +1,6 @@
|
||||
# At least have the following in .zshenv_local:
|
||||
# export GIT_AUTHOR_NAME='Alfred Muster'
|
||||
# export GIT_AUTHOR_EMAIL='test@example.com'
|
||||
# export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME?}"
|
||||
# export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL?}"
|
||||
[ -r ~/.zshenv_local ] && source ~/.zshenv_local || true
|
||||
@@ -159,9 +159,4 @@ PROMPT='${IN_NIX_SHELL}%(?..%F{red}%?%f )[%n@%m] %3~${vcs_info_msg_0_} %# '
|
||||
# Expand aliases by the press of TAB.
|
||||
zstyle ':completion:*' completer _expand_alias _complete _ignored
|
||||
|
||||
# At least have the following in .zshrc_local:
|
||||
# export GIT_AUTHOR_NAME='Alfred Muster'
|
||||
# export GIT_AUTHOR_EMAIL='test@example.com'
|
||||
# export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME?}"
|
||||
# export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL?}"
|
||||
[ -r ~/.zshrc_local ] && source ~/.zshrc_local || true
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
git
|
||||
vim
|
||||
stow
|
||||
wget
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
@@ -22,6 +23,15 @@
|
||||
. ${../migrated/.zshrc}
|
||||
fi
|
||||
'';
|
||||
|
||||
# At least have the following in .zshenv_local:
|
||||
# export GIT_AUTHOR_NAME='Alfred Muster'
|
||||
# export GIT_AUTHOR_EMAIL='test@example.com'
|
||||
# export GIT_COMMITTER_NAME="${GIT_AUTHOR_NAME?}"
|
||||
# export GIT_COMMITTER_EMAIL="${GIT_AUTHOR_EMAIL?}"
|
||||
envExtra = ''
|
||||
[ -r ~/.zshenv_local ] && source ~/.zshenv_local || true
|
||||
'';
|
||||
};
|
||||
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user