Skip to content

Latest commit

 

History

History
77 lines (53 loc) · 6.73 KB

README.md

File metadata and controls

77 lines (53 loc) · 6.73 KB

Xshe – Cross-Shell Environment Vars

GitHub Release Status Libraries.io dependency status Latest GitHub Release Crates.io downloads

Xshe allows for setting Shell Environment Variables across multiple shells with a single TOML configuration file.

Instead of writing multiple similar files for each shell you use, you can instead create one file and use it for every shell with xshe!

All you have to do is add a single line to all of your shells' startup scripts, and xshe will set your environment variables across all of them.

To use xshe, you write lines in a xshe.toml file like this (in TOML format):

CARGO_HOME = '~/.cargo'
EDITOR = '$(which nano)'

Create a file like this once and use it everywhere, for every shell! Xshe can convert this into the format for every supported shell.

Shells - bash | zsh | fish Coming Soon - powershell | elvish | dash | xonsh | tcsh

Xshe support more than just plain conversions.
It can set lists of paths like $PATH and $MANPATH, set certain variables to different values depending on the shell, unset environment variables, and much more!

Quick install


xshe is licensed under MIT OR Apache-2.0