https://github.com/curusarn/env-injector
PROJECT IDEA: Shell environment injector - set env variables across all shell sessions from anywhere
https://github.com/curusarn/env-injector
Last synced: 3 months ago
JSON representation
PROJECT IDEA: Shell environment injector - set env variables across all shell sessions from anywhere
- Host: GitHub
- URL: https://github.com/curusarn/env-injector
- Owner: curusarn
- Created: 2019-12-19T12:13:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T12:37:13.000Z (over 5 years ago)
- Last Synced: 2025-01-30T02:24:27.007Z (4 months ago)
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# env-injector
PLACEHOLDER repository (this is just an idea for a project)
Shell environment injector - set env variables across all shell sessions from anywhere
2 ways/options to handle this:
- Create something very close to [fish universal variables](https://fishshell.com/docs/current/index.html#variables-universal) for zsh and bash.
- Run a daemon that accepts variable assignments and injects those into all running shell sessions (+ some persistency)
### How would this even work?
1) use `preexec` in zsh (native) and in bash ([bash-preexec](https://github.com/rcaloras/bash-preexec/)) to run a command every time the preompt redraws
2) make this command request env changes from the env injector daemon
3) run the daemon
4) ???
5) profit :rocket: