A lightweight shell environment manager for setting and syncing environment variables across terminals, with a cyber ape vibe. Set your WORKDIR
or custom vars like a boss and swing through your shell sessions with ease!
- Set and Sync Vars: Use
@set FOO=BAR
to set variables that persist across terminals. - Auto-Navigate: Automatically
cd
toWORKDIR
in new terminals. - Bash Integration: Seamless setup with
eval "$(bananenv init bash)"
. - Single Temp File: Vars stored in
/tmp/bananenv.$USER.session
, cleared on reboot. - Cyber Ape Aesthetic: Built with π¦ strength and π flair!
- Prerequisites:
- Go (1.18+)
- Bash
- Clone and Build:
git clone https://github.com/jgabrielgruber/bananenv.git cd bananenv go build -o ~/bin/bananenv bananenv.go
- Set Up Bash:
Add to
~/.bashrc
:Source it:export PATH="~/bin:$PATH" eval "$(bananenv init bash)" cd $WORKDIR # Optional, but the reason for the tool
source ~/.bashrc
- Set a variable:
@set FOO="BAR"
- List variables:
@list
- Unset a variable:
@unset FOO
- Set and navigate to a working directory:
@set WORKDIR=/path/to/project
- Check vars in a new terminal:
echo $FOO pwd # Shows WORKDIR
We love apes and bananums! π¦π Check out CONTRIBUTING.md to join the jungle:
- Submit bug reports or feature requests via Issues.
- Add support for Zsh, Fish, or other shells.
- Improve performance or add new
@
commands.
MIT License. See LICENSE for details.
- Support for Zsh and Fish shells (see Issues).
- Add
@clear
command to reset all vars. - Optional persistent storage for vars across reboots.
Built with love by @jgabrielgruber and cyber ape assistant π @grok. Inspired by Starshipβs shell magic.
APES STRONG TOGETHER! π¦π