gexport

Crates.iogexport
lib.rsgexport
version1.1.2
created_at2025-07-03 14:59:45.477255+00
updated_at2025-08-13 19:54:20.028067+00
descriptionManage and synchronize environment variables between interactive shell sessions for Bash and Zsh.
homepage
repositoryhttps://github.com/Flachz/gexport
max_upload_size
id1736375
size41,167
(Flachz)

documentation

README

Gexport

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.

Installation

Requirements

Cargo

cargo install gexport

Manual

Download release binary and extract to /usr/local/bin for system-wide install or ~/.local/bin for user install.

Setup

Bash

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

Zsh

echo 'eval "$(gexport --init zsh)"' >> ~/.zshrc
Commit count: 0

cargo fmt