Skip to content

Instantly share code, notes, and snippets.

@stanosmith
Last active October 8, 2019 05:10
Show Gist options
  • Save stanosmith/d29c927205acab03002a12869636d435 to your computer and use it in GitHub Desktop.
Save stanosmith/d29c927205acab03002a12869636d435 to your computer and use it in GitHub Desktop.
Custom iTerm2 Zsh Config
# Make sure you don't have this already
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
#
# Custom Status Bar Variables
#
iterm2_print_user_vars() {
# extend this to add whatever
# you want to have printed out in the status bar
iterm2_set_user_var nodeVersion $(node -v)
iterm2_set_user_var npmVersion $(npm -v)
iterm2_set_user_var pwd $(pwd)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment