Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add shell specific options #4

Closed
superatomic opened this issue Mar 31, 2022 · 0 comments · Fixed by #7
Closed

Add shell specific options #4

superatomic opened this issue Mar 31, 2022 · 0 comments · Fixed by #7
Assignees
Labels
enhancement New feature or request feature Added functionality
Milestone

Comments

@superatomic
Copy link
Owner

Currently, all shells are given the exact same environment variables. While this is optimal for most variables, it is sometimes useful to have different variables be set for certain shells, or to have different shells have different values.

Each shell's specific variables should be represented as a TOML table in a new table shell, with a name corresponding to the shell (eg. [shell.fish]).

Specific shell options should always come after the options that apply to all shells.

Example

EDITOR = "$(which nano)"
CARGO_HOME = "$XDG_DATA_HOME/cargo"

[shell.bash]
HISTFILE = "$XDG_STATE_HOME/bash_history"

[shell.zsh]
HISTFILE = "$XDG_STATE_HOME/zsh_history"
ZSH_CACHE_DIR = "$XDG_CACHE_HOME/oh-my-zsh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature Added functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant