-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow init --skip-env and --only-env
In (some?) shells, it's sometimes preferable to set up env vars in a different place than other configuration like most of what `atuin init` sets up. For example, ZSH reads ~/.zshenv for all shells while ~/.zshrc is only read for interactive shells. This allows splitting the output of init such that in these two different config files we could load environment variables and load all other config seperately: ~/.zshenv: eval "$(atuin init zsh --env-only)" ~/.zshrc: eval "$(atuin init zsh --skip-env --disable-up-arrow)" Which means that when launching noninteractive shells (I do this frequently for running tests from Vim, for example, but it's more generally useful) the specified env values will be sourced and we won't redefine them in login shells.
- Loading branch information
1 parent
72a562a
commit a2e18a0
Showing
6 changed files
with
61 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters