Skip to content

Instantly share code, notes, and snippets.

@real-or-random
Created January 22, 2026 13:11
Show Gist options
  • Select an option

  • Save real-or-random/700c87a5b8ab463c1d87b24777f91352 to your computer and use it in GitHub Desktop.

Select an option

Save real-or-random/700c87a5b8ab463c1d87b24777f91352 to your computer and use it in GitHub Desktop.
#!/usr/bin/env -iS /bin/bash -l
# SPDX-License-Identifier: MIT-0
env --unset=_ --unset=SHLVL --unset=PWD --unset=OLDPWD /usr/bin/printenv
@real-or-random
Copy link
Author

real-or-random commented Jan 22, 2026

Store in /etc/systemd/user-environment-generators/ and make executable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment