Skip to content

Instantly share code, notes, and snippets.

@jeremyjs
Created June 16, 2014 17:03
Show Gist options
  • Save jeremyjs/71844bae743c26a9c93c to your computer and use it in GitHub Desktop.
Save jeremyjs/71844bae743c26a9c93c to your computer and use it in GitHub Desktop.
# view environment variables
$ printenv
PATH=/usr/local/heroku/bin:/usr/local/heroku/bin:/Users/jmeyer1/.rbenv/bin:/Users/jmeyer1/code/8b/bin:/Users/jmeyer1/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
TMPDIR=/var/folders/wz/v_ty7wz108v3tz90gg627nt40000gp/T/
SHELL=/bin/zsh
HOME=/Users/jmeyer1
USER=jmeyer1
LOGNAME=jmeyer1
SSH_AUTH_SOCK=/tmp/launch-E2mZnk/Listeners
Apple_PubSub_Socket_Render=/tmp/launch-GhVrOe/Render
__CHECKFIX1436934=1
SECURITYSESSIONID=186a4
__CF_USER_TEXT_ENCODING=0x1F6:0:0
TERM_PROGRAM=iTerm.app
COLORFGBG=7;0
LANG=en_US.UTF-8
PWD=/Users/jmeyer1
ITERM_PROFILE=Jeremy
TERM=xterm-256color
ITERM_SESSION_ID=w0t6p0
SHLVL=1
OLDPWD=/Users/jmeyer1/Code
GREP_OPTIONS=--color=auto
GREP_COLOR=0;32
PAGER=less
LESS=-erX
LC_CTYPE=en_US.UTF-8
LSCOLORS=DxFxbxdxCxbxbxgxgxexEx
CLICOLOR=1
LS_COLORS=no=0:fi=0:di=1;93:ln=95:so=31:pi=33:bd=36:cd=37
EDITOR=vim
GREP_COLORS=sl=0;37:cx=1;32:mt=1;35:fn=0;32:ln=1;34:se=1;33
HISTFILESIZE=300000
HISTIGNORE=&:ls:[bf]g:exit:history
HISTCONTROL=ignoreboth
HISTSIZE=100000
_=/usr/bin/printenv
$ printenv | grep "EDITOR"
EDITOR=vim
# show path
$ echo $PATH
/usr/local/heroku/bin:/usr/local/heroku/bin:/Users/jmeyer1/.rbenv/bin:/Users/jmeyer1/code/8b/bin:/Users/jmeyer1/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# show ruby path
$ which ruby
/Users/jmeyer1/.rbenv/shims/ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment