Skip to content

Instantly share code, notes, and snippets.

@bgerstle
Created May 30, 2014 11:44
Show Gist options
  • Select an option

  • Save bgerstle/4586d6d8be6c8535127d to your computer and use it in GitHub Desktop.

Select an option

Save bgerstle/4586d6d8be6c8535127d to your computer and use it in GitHub Desktop.
Script I wrote to unset all the environment variables in launchctl. Note that you might need to `rm /etc/launchd.conf` to really "clean" it.
unsetenv PATH
unsetenv GREP_COLOR
unsetenv MANPATH
unsetenv LDFLAGS
unsetenv TERM_PROGRAM
unsetenv GEM_HOME
unsetenv M2
unsetenv TERM
unsetenv SHELL
unsetenv TMPDIR
unsetenv Apple_PubSub_Socket_Render
unsetenv BOXEN_CONFIG_DIR
unsetenv HOMEBREW_ROOT
unsetenv NODENV_ROOT
unsetenv USER
unsetenv BOXEN_SOCKET_DIR
unsetenv SUDO_USER
unsetenv SUDO_UID
unsetenv RBENV_ROOT
unsetenv SSH_AUTH_SOCK
unsetenv BOXEN_GITHUB_LOGIN
unsetenv __CF_USER_TEXT_ENCODING
unsetenv USERNAME
unsetenv PAGER
unsetenv BOXEN_LOG_DIR
unsetenv HOMEBREW_CACHE
unsetenv LSCOLORS
unsetenv __CHECKFIX1436934
unsetenv MAIL
unsetenv BOXEN_HOME
unsetenv PWD
unsetenv JAVA_HOME
unsetenv EDITOR
unsetenv LANG
unsetenv BOXEN_BIN_DIR
unsetenv HOME
unsetenv SHLVL
unsetenv M2_HOME
unsetenv BUNDLE_GEMFILE
unsetenv BOXEN_ENV_DIR
unsetenv BUNDLE_JOBS
unsetenv CFLAGS
unsetenv BOXEN_DATA_DIR
unsetenv LESS
unsetenv LOGNAME
unsetenv LC_CTYPE
unsetenv GEM_PATH
unsetenv DEBIAN_FRONTEND
unsetenv APT_LISTCHANGES_FRONTEND
unsetenv APT_LISTBUGS_FRONTEND
unsetenv ARCHFLAGS
unsetenv BOXEN_SETUP_VERSION
unsetenv DISPLAY
unsetenv SUDO_GID
unsetenv RUBYOPT
unsetenv BUNDLE_BIN_PATH
unsetenv RUBYLIB
unsetenv BOXEN_SRC_DIR
unsetenv _
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment