Crates.io | gexport |
lib.rs | gexport |
version | 1.1.2 |
created_at | 2025-07-03 14:59:45.477255+00 |
updated_at | 2025-08-13 19:54:20.028067+00 |
description | Manage and synchronize environment variables between interactive shell sessions for Bash and Zsh. |
homepage | |
repository | https://github.com/Flachz/gexport |
max_upload_size | |
id | 1736375 |
size | 41,167 |
Manage and synchronize environment variables between interactive shell sessions for Bash and Zsh.
Functions similarly to set -U
in Fish, just for Bash / Zsh and with syntax based on
standard POSIX export
.
cargo install gexport
Download release binary and extract to /usr/local/bin
for system-wide install or ~/.local/bin
for user install.
Ensure bash-preexec.sh is installed and is correctly initialized. For initialization of bash-preexec you should have something similar to this in your .bashrc:
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
Then to setup gexport itself:
echo 'eval "$(gexport --init bash)"' >> ~/.bashrc
echo 'eval "$(gexport --init zsh)"' >> ~/.zshrc